Enum wireplumber::lua::LuaType
source · pub enum LuaType {
Nil,
Boolean,
Integer,
Float,
String,
Table,
}
Available on crate feature
lua
only.Variants§
Implementations§
source§impl LuaType
impl LuaType
pub fn with_variant_type(ty: &VariantTy) -> Option<Self>
pub fn with_lua_variant(var: &LuaVariant<'_>) -> Self
pub fn with_variant(var: &Variant) -> Result<Self, LuaError>
pub fn is_numeric(&self) -> bool
pub fn is_table(&self) -> bool
pub fn is_nil(&self) -> bool
Trait Implementations§
source§impl Ord for LuaType
impl Ord for LuaType
source§impl PartialEq for LuaType
impl PartialEq for LuaType
source§impl PartialOrd for LuaType
impl PartialOrd for LuaType
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for LuaType
impl Eq for LuaType
impl StructuralPartialEq for LuaType
Auto Trait Implementations§
impl Freeze for LuaType
impl RefUnwindSafe for LuaType
impl Send for LuaType
impl Sync for LuaType
impl Unpin for LuaType
impl UnwindSafe for LuaType
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more