pub struct Object<L> { /* private fields */ }
Expand description
Implementations§
Trait Implementations§
source§impl<L> AsLua for Object<L>where
L: AsLua,
impl<L> AsLua for Object<L>where
L: AsLua,
fn as_lua(&self) -> LuaState
source§fn try_push<T>(
self,
v: T,
) -> Result<PushGuard<Self>, (<T as PushInto<Self>>::Err, Self)>
fn try_push<T>( self, v: T, ) -> Result<PushGuard<Self>, (<T as PushInto<Self>>::Err, Self)>
Try to push
v
onto the lua stack. Read moresource§fn try_push_one<T>(
self,
v: T,
) -> Result<PushGuard<Self>, (<T as PushInto<Self>>::Err, Self)>where
Self: Sized,
T: PushOneInto<Self>,
fn try_push_one<T>(
self,
v: T,
) -> Result<PushGuard<Self>, (<T as PushInto<Self>>::Err, Self)>where
Self: Sized,
T: PushOneInto<Self>,
Try to push
v
onto the lua stack. Read moresource§fn push_iter<I>(self, iterator: I) -> Result<PushGuard<Self>, Self>
fn push_iter<I>(self, iterator: I) -> Result<PushGuard<Self>, Self>
Push
iterator
onto the lua stack as a lua table. Read moresource§fn try_push_iter<I>(
self,
iterator: I,
) -> Result<PushGuard<Self>, (PushIterErrorOf<I>, Self)>
fn try_push_iter<I>( self, iterator: I, ) -> Result<PushGuard<Self>, (PushIterErrorOf<I>, Self)>
Push
iterator
onto the lua stack as a lua table. Read morefn read<T>(self) -> ReadResult<T, Self>
fn read_at<T>(self, index: i32) -> ReadResult<T, Self>
fn read_at_nz<T>(self, index: NonZeroI32) -> ReadResult<T, Self>
source§impl<'a, L> From<CDataOnStack<'a, L>> for Object<L>
impl<'a, L> From<CDataOnStack<'a, L>> for Object<L>
source§fn from(ud: CDataOnStack<'a, L>) -> Self
fn from(ud: CDataOnStack<'a, L>) -> Self
Converts to this type from the input type.
source§impl<L> From<IndexableRW<L>> for Object<L>where
L: AsLua,
impl<L> From<IndexableRW<L>> for Object<L>where
L: AsLua,
source§fn from(o: IndexableRW<L>) -> Self
fn from(o: IndexableRW<L>) -> Self
Converts to this type from the input type.
source§impl<L> From<LuaFunction<L>> for Object<L>where
L: AsLua,
impl<L> From<LuaFunction<L>> for Object<L>where
L: AsLua,
source§fn from(o: LuaFunction<L>) -> Self
fn from(o: LuaFunction<L>) -> Self
Converts to this type from the input type.
source§impl<'a, T, L> From<UserdataOnStack<'a, T, L>> for Object<L>
impl<'a, T, L> From<UserdataOnStack<'a, T, L>> for Object<L>
source§fn from(ud: UserdataOnStack<'a, T, L>) -> Self
fn from(ud: UserdataOnStack<'a, T, L>) -> Self
Converts to this type from the input type.
source§impl<L> LuaRead<L> for Object<L>where
L: AsLua,
impl<L> LuaRead<L> for Object<L>where
L: AsLua,
source§fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
fn lua_read_at_position(lua: L, index: NonZeroI32) -> ReadResult<Self, L>
Reads the data from Lua at a given position.
fn n_values_expected() -> i32
source§fn lua_read(lua: L) -> ReadResult<Self, L>
fn lua_read(lua: L) -> ReadResult<Self, L>
Reads the data from Lua.
fn lua_read_at_maybe_zero_position(lua: L, index: i32) -> ReadResult<Self, L>where
L: AsLua,
source§impl<L, K> Push<L> for Object<K>
impl<L, K> Push<L> for Object<K>
source§fn push_to_lua(&self, lua: L) -> PushResult<L, Self>
fn push_to_lua(&self, lua: L) -> PushResult<L, Self>
Pushes the value on the top of the stack. Read more
source§impl<L, K> PushInto<L> for Object<K>
impl<L, K> PushInto<L> for Object<K>
type Err = Void
source§fn push_into_lua(self, lua: L) -> PushIntoResult<L, Self>
fn push_into_lua(self, lua: L) -> PushIntoResult<L, Self>
Push the value into lua by value
source§impl<T, L> TryFrom<Object<L>> for UserdataOnStack<'_, T, L>
impl<T, L> TryFrom<Object<L>> for UserdataOnStack<'_, T, L>
impl<L> PushOne<L> for Object<L>where
L: AsLua,
impl<L> PushOneInto<L> for Object<L>where
L: AsLua,
Auto Trait Implementations§
impl<L> Freeze for Object<L>where
L: Freeze,
impl<L> RefUnwindSafe for Object<L>where
L: RefUnwindSafe,
impl<L> Send for Object<L>where
L: Send,
impl<L> Sync for Object<L>where
L: Sync,
impl<L> Unpin for Object<L>where
L: Unpin,
impl<L> UnwindSafe for Object<L>where
L: UnwindSafe,
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