pub struct LuaEnumOptions(pub EnumOptions);
Tuple Fields§
§0: EnumOptions
Methods from Deref<Target = EnumOptions>§
pub fn allow_alias(&self) -> bool
pub fn clear_allow_alias(&mut self)
pub fn has_allow_alias(&self) -> bool
pub fn set_allow_alias(&mut self, v: bool)
pub fn deprecated(&self) -> bool
pub fn clear_deprecated(&mut self)
pub fn has_deprecated(&self) -> bool
pub fn set_deprecated(&mut self, v: bool)
Trait Implementations§
Source§impl Clone for LuaEnumOptions
impl Clone for LuaEnumOptions
Source§fn clone(&self) -> LuaEnumOptions
fn clone(&self) -> LuaEnumOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LuaEnumOptions
impl Debug for LuaEnumOptions
Source§impl Default for LuaEnumOptions
impl Default for LuaEnumOptions
Source§fn default() -> LuaEnumOptions
fn default() -> LuaEnumOptions
Returns the “default value” for a type. Read more
Source§impl Deref for LuaEnumOptions
impl Deref for LuaEnumOptions
Source§impl DerefMut for LuaEnumOptions
impl DerefMut for LuaEnumOptions
Source§impl From<EnumOptions> for LuaEnumOptions
impl From<EnumOptions> for LuaEnumOptions
Source§fn from(value: EnumOptions) -> Self
fn from(value: EnumOptions) -> Self
Converts to this type from the input type.
Source§impl From<LuaEnumOptions> for EnumOptions
impl From<LuaEnumOptions> for EnumOptions
Source§fn from(value: LuaEnumOptions) -> Self
fn from(value: LuaEnumOptions) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaEnumOptions
impl PartialEq for LuaEnumOptions
Source§impl UserData for LuaEnumOptions
impl UserData for LuaEnumOptions
Source§fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
fn add_fields<F: UserDataFields<Self>>(fields: &mut F)
Adds custom fields specific to this userdata.
Source§fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
fn add_methods<M: UserDataMethods<Self>>(methods: &mut M)
Adds custom methods and operators specific to this userdata.
Source§fn register(registry: &mut UserDataRegistry<Self>)
fn register(registry: &mut UserDataRegistry<Self>)
Registers this type for use in Lua. Read more
impl StructuralPartialEq for LuaEnumOptions
Auto Trait Implementations§
impl !Freeze for LuaEnumOptions
impl RefUnwindSafe for LuaEnumOptions
impl Send for LuaEnumOptions
impl Sync for LuaEnumOptions
impl Unpin for LuaEnumOptions
impl UnwindSafe for LuaEnumOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoLuaMulti for Twhere
T: IntoLua,
impl<T> IntoLuaMulti for Twhere
T: IntoLua,
Source§fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
fn into_lua_multi(self, lua: &Lua) -> Result<MultiValue, Error>
Performs the conversion.