Struct tlua::AbsoluteIndex
source · [−]pub struct AbsoluteIndex(_);Implementations
sourceimpl AbsoluteIndex
impl AbsoluteIndex
pub fn new<L>(index: NonZeroI32, lua: L) -> Self where
L: AsLua,
sourcepub unsafe fn new_unchecked(index: NonZeroI32) -> Self
pub unsafe fn new_unchecked(index: NonZeroI32) -> Self
Safety
index must be a valid absolute or relative index into the lua stack
with which it’s going to be used
pub fn get(&self) -> u32
Trait Implementations
sourceimpl Clone for AbsoluteIndex
impl Clone for AbsoluteIndex
sourcefn clone(&self) -> AbsoluteIndex
fn clone(&self) -> AbsoluteIndex
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for AbsoluteIndex
impl Debug for AbsoluteIndex
sourceimpl From<AbsoluteIndex> for i32
impl From<AbsoluteIndex> for i32
sourcefn from(index: AbsoluteIndex) -> i32
fn from(index: AbsoluteIndex) -> i32
Converts to this type from the input type.
impl Copy for AbsoluteIndex
Auto Trait Implementations
impl RefUnwindSafe for AbsoluteIndex
impl Send for AbsoluteIndex
impl Sync for AbsoluteIndex
impl Unpin for AbsoluteIndex
impl UnwindSafe for AbsoluteIndex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more