pub struct LuaEnumValueDescriptor(pub EnumValueDescriptor);
Tuple Fields§
§0: EnumValueDescriptor
Methods from Deref<Target = EnumValueDescriptor>§
Sourcepub fn proto(&self) -> &EnumValueDescriptorProto
pub fn proto(&self) -> &EnumValueDescriptorProto
.proto
object which declared this value.
Sourcepub fn full_name(&self) -> String
pub fn full_name(&self) -> String
Fully qualified enum value name: fully qualified enum name followed by value name.
Sourcepub fn enum_descriptor(&self) -> &EnumDescriptor
pub fn enum_descriptor(&self) -> &EnumDescriptor
Get descriptor of enum holding this value.
Trait Implementations§
Source§impl Clone for LuaEnumValueDescriptor
impl Clone for LuaEnumValueDescriptor
Source§fn clone(&self) -> LuaEnumValueDescriptor
fn clone(&self) -> LuaEnumValueDescriptor
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 Deref for LuaEnumValueDescriptor
impl Deref for LuaEnumValueDescriptor
Source§impl From<EnumValueDescriptor> for LuaEnumValueDescriptor
impl From<EnumValueDescriptor> for LuaEnumValueDescriptor
Source§fn from(value: EnumValueDescriptor) -> Self
fn from(value: EnumValueDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<LuaEnumValueDescriptor> for EnumValueDescriptor
impl From<LuaEnumValueDescriptor> for EnumValueDescriptor
Source§fn from(value: LuaEnumValueDescriptor) -> Self
fn from(value: LuaEnumValueDescriptor) -> Self
Converts to this type from the input type.
Source§impl Hash for LuaEnumValueDescriptor
impl Hash for LuaEnumValueDescriptor
Source§impl PartialEq for LuaEnumValueDescriptor
impl PartialEq for LuaEnumValueDescriptor
Source§impl UserData for LuaEnumValueDescriptor
impl UserData for LuaEnumValueDescriptor
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 add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
fn add_fields<F>(fields: &mut F)where
F: UserDataFields<Self>,
Adds custom fields 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 Eq for LuaEnumValueDescriptor
impl StructuralPartialEq for LuaEnumValueDescriptor
Auto Trait Implementations§
impl Freeze for LuaEnumValueDescriptor
impl !RefUnwindSafe for LuaEnumValueDescriptor
impl Send for LuaEnumValueDescriptor
impl Sync for LuaEnumValueDescriptor
impl Unpin for LuaEnumValueDescriptor
impl !UnwindSafe for LuaEnumValueDescriptor
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.