Struct hlua::UserdataOnStack

source ·
pub struct UserdataOnStack<T, L> { /* private fields */ }
Expand description

Represents a user data located inside the Lua context.

Trait Implementations§

source§

impl<'lua, T, L> AsLua<'lua> for UserdataOnStack<T, L>
where L: AsLua<'lua>, T: 'lua + Any,

source§

impl<'lua, T, L> AsMutLua<'lua> for UserdataOnStack<T, L>
where L: AsMutLua<'lua>, T: 'lua + Any,

source§

fn as_mut_lua(&mut self) -> LuaContext

Returns the raw Lua context.
source§

impl<T: Debug, L: Debug> Debug for UserdataOnStack<T, L>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'lua, T, L> Deref for UserdataOnStack<T, L>
where L: AsLua<'lua>, T: 'lua + Any,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.
source§

impl<'lua, T, L> DerefMut for UserdataOnStack<T, L>
where L: AsMutLua<'lua>, T: 'lua + Any,

source§

fn deref_mut(&mut self) -> &mut T

Mutably dereferences the value.
source§

impl<'lua, T, L> LuaRead<L> for UserdataOnStack<T, L>
where L: AsMutLua<'lua>, T: 'lua + Any,

source§

fn lua_read_at_position(lua: L, index: i32) -> Result<UserdataOnStack<T, L>, L>

Reads the data from Lua at a given position.
source§

fn lua_read(lua: L) -> Result<Self, L>

Reads the data from Lua.

Auto Trait Implementations§

§

impl<T, L> Freeze for UserdataOnStack<T, L>
where L: Freeze,

§

impl<T, L> RefUnwindSafe for UserdataOnStack<T, L>

§

impl<T, L> Send for UserdataOnStack<T, L>
where L: Send, T: Send,

§

impl<T, L> Sync for UserdataOnStack<T, L>
where L: Sync, T: Sync,

§

impl<T, L> Unpin for UserdataOnStack<T, L>
where L: Unpin, T: Unpin,

§

impl<T, L> UnwindSafe for UserdataOnStack<T, L>
where L: UnwindSafe, T: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.