pub struct LuaNamePart(pub NamePart);
Tuple Fields§
§0: NamePart
Methods from Deref<Target = NamePart>§
pub fn name_part(&self) -> &str
pub fn clear_name_part(&mut self)
pub fn has_name_part(&self) -> bool
pub fn set_name_part(&mut self, v: String)
pub fn mut_name_part(&mut self) -> &mut String
pub fn take_name_part(&mut self) -> String
pub fn is_extension(&self) -> bool
pub fn clear_is_extension(&mut self)
pub fn has_is_extension(&self) -> bool
pub fn set_is_extension(&mut self, v: bool)
Trait Implementations§
Source§impl Clone for LuaNamePart
impl Clone for LuaNamePart
Source§fn clone(&self) -> LuaNamePart
fn clone(&self) -> LuaNamePart
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 LuaNamePart
impl Debug for LuaNamePart
Source§impl Default for LuaNamePart
impl Default for LuaNamePart
Source§fn default() -> LuaNamePart
fn default() -> LuaNamePart
Returns the “default value” for a type. Read more
Source§impl Deref for LuaNamePart
impl Deref for LuaNamePart
Source§impl DerefMut for LuaNamePart
impl DerefMut for LuaNamePart
Source§impl From<LuaNamePart> for NamePart
impl From<LuaNamePart> for NamePart
Source§fn from(value: LuaNamePart) -> Self
fn from(value: LuaNamePart) -> Self
Converts to this type from the input type.
Source§impl From<NamePart> for LuaNamePart
impl From<NamePart> for LuaNamePart
Source§impl PartialEq for LuaNamePart
impl PartialEq for LuaNamePart
Source§impl UserData for LuaNamePart
impl UserData for LuaNamePart
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 LuaNamePart
Auto Trait Implementations§
impl !Freeze for LuaNamePart
impl RefUnwindSafe for LuaNamePart
impl Send for LuaNamePart
impl Sync for LuaNamePart
impl Unpin for LuaNamePart
impl UnwindSafe for LuaNamePart
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.