pub struct LuaOneofDescriptor(pub OneofDescriptor);
Tuple Fields§
§0: OneofDescriptor
Methods from Deref<Target = OneofDescriptor>§
Sourcepub fn proto(&self) -> &OneofDescriptorProto
pub fn proto(&self) -> &OneofDescriptorProto
.proto
part associated with this descriptor
Sourcepub fn containing_message(&self) -> MessageDescriptor
pub fn containing_message(&self) -> MessageDescriptor
Message which contains this oneof.
Sourcepub fn is_synthetic(&self) -> bool
pub fn is_synthetic(&self) -> bool
This oneof is not present in sources.
Sourcepub fn full_name(&self) -> String
pub fn full_name(&self) -> String
Fully qualified name of oneof (fully qualified name of enclosing message followed by oneof name).
Sourcepub fn fields<'a>(&'a self) -> impl Iterator<Item = FieldDescriptor> + 'a
pub fn fields<'a>(&'a self) -> impl Iterator<Item = FieldDescriptor> + 'a
Fields in this oneof.
Trait Implementations§
Source§impl Clone for LuaOneofDescriptor
impl Clone for LuaOneofDescriptor
Source§fn clone(&self) -> LuaOneofDescriptor
fn clone(&self) -> LuaOneofDescriptor
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 LuaOneofDescriptor
impl Debug for LuaOneofDescriptor
Source§impl Deref for LuaOneofDescriptor
impl Deref for LuaOneofDescriptor
Source§impl From<LuaOneofDescriptor> for OneofDescriptor
impl From<LuaOneofDescriptor> for OneofDescriptor
Source§fn from(value: LuaOneofDescriptor) -> Self
fn from(value: LuaOneofDescriptor) -> Self
Converts to this type from the input type.
Source§impl From<OneofDescriptor> for LuaOneofDescriptor
impl From<OneofDescriptor> for LuaOneofDescriptor
Source§fn from(value: OneofDescriptor) -> Self
fn from(value: OneofDescriptor) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaOneofDescriptor
impl PartialEq for LuaOneofDescriptor
Source§impl UserData for LuaOneofDescriptor
impl UserData for LuaOneofDescriptor
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 LuaOneofDescriptor
impl StructuralPartialEq for LuaOneofDescriptor
Auto Trait Implementations§
impl Freeze for LuaOneofDescriptor
impl !RefUnwindSafe for LuaOneofDescriptor
impl Send for LuaOneofDescriptor
impl Sync for LuaOneofDescriptor
impl Unpin for LuaOneofDescriptor
impl !UnwindSafe for LuaOneofDescriptor
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.