pub struct LuaDescriptorProto(pub DescriptorProto);
Tuple Fields§
§0: DescriptorProto
Methods from Deref<Target = DescriptorProto>§
Trait Implementations§
Source§impl Clone for LuaDescriptorProto
impl Clone for LuaDescriptorProto
Source§fn clone(&self) -> LuaDescriptorProto
fn clone(&self) -> LuaDescriptorProto
Returns a duplicate 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 LuaDescriptorProto
impl Debug for LuaDescriptorProto
Source§impl Default for LuaDescriptorProto
impl Default for LuaDescriptorProto
Source§fn default() -> LuaDescriptorProto
fn default() -> LuaDescriptorProto
Returns the “default value” for a type. Read more
Source§impl Deref for LuaDescriptorProto
impl Deref for LuaDescriptorProto
Source§impl DerefMut for LuaDescriptorProto
impl DerefMut for LuaDescriptorProto
Source§impl From<DescriptorProto> for LuaDescriptorProto
impl From<DescriptorProto> for LuaDescriptorProto
Source§fn from(value: DescriptorProto) -> Self
fn from(value: DescriptorProto) -> Self
Converts to this type from the input type.
Source§impl From<LuaDescriptorProto> for DescriptorProto
impl From<LuaDescriptorProto> for DescriptorProto
Source§fn from(value: LuaDescriptorProto) -> Self
fn from(value: LuaDescriptorProto) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LuaDescriptorProto
impl PartialEq for LuaDescriptorProto
Source§impl UserData for LuaDescriptorProto
impl UserData for LuaDescriptorProto
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 LuaDescriptorProto
Auto Trait Implementations§
impl !Freeze for LuaDescriptorProto
impl RefUnwindSafe for LuaDescriptorProto
impl Send for LuaDescriptorProto
impl Sync for LuaDescriptorProto
impl Unpin for LuaDescriptorProto
impl UnwindSafe for LuaDescriptorProto
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.