pub struct LuaObjectType { /* private fields */ }Implementations§
Source§impl LuaObjectType
impl LuaObjectType
pub fn new(object_fields: Vec<(LuaIndexAccessKey, LuaType)>) -> Self
pub fn new_with_fields( fields: HashMap<LuaMemberKey, LuaType>, index_access: Vec<(LuaType, LuaType)>, ) -> Self
pub fn get_fields(&self) -> &HashMap<LuaMemberKey, LuaType>
pub fn get_index_access(&self) -> &[(LuaType, LuaType)]
pub fn get_field(&self, key: &LuaMemberKey) -> Option<&LuaType>
pub fn contain_tpl(&self) -> bool
Trait Implementations§
Source§impl Clone for LuaObjectType
impl Clone for LuaObjectType
Source§fn clone(&self) -> LuaObjectType
fn clone(&self) -> LuaObjectType
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 LuaObjectType
impl Debug for LuaObjectType
Source§impl From<LuaObjectType> for LuaType
impl From<LuaObjectType> for LuaType
Source§fn from(t: LuaObjectType) -> Self
fn from(t: LuaObjectType) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LuaObjectType
impl RefUnwindSafe for LuaObjectType
impl Send for LuaObjectType
impl Sync for LuaObjectType
impl Unpin for LuaObjectType
impl UnwindSafe for LuaObjectType
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 more