Enum lua::index::Index [−][src]
Enum to index the stack relative to the Top and Bottom
Variants
Top(usize)index from the top of the stack
Bottom(usize)index from the bottom of the stack
Methods
impl Index[src]
impl Indexpub const TOP: Index
TOP: Index = Index::Top(1)
Top of the stack. Equivalent to -1
pub const BOTTOM: Index
BOTTOM: Index = Index::Bottom(1)
Bottom of the stack. Equivalent to 1
pub const REGITRY: Index
REGITRY: Index = Index::Top(1001000)
Index of the registry table. Equivalent to LUA_REGISTRYINDEX
pub fn from_absolute(v: c_int) -> Self[src]
pub fn from_absolute(v: c_int) -> Selfpub fn as_absolute(&self) -> c_int[src]
pub fn as_absolute(&self) -> c_intTrait Implementations
impl Debug for Index[src]
impl Debug for Indexfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for Index[src]
impl Clone for Indexfn clone(&self) -> Index[src]
fn clone(&self) -> IndexReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for Index[src]
impl Copy for Indeximpl Eq for Index[src]
impl Eq for Indeximpl PartialEq for Index[src]
impl PartialEq for Indexfn eq(&self, other: &Index) -> bool[src]
fn eq(&self, other: &Index) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Index) -> bool[src]
fn ne(&self, other: &Index) -> boolThis method tests for !=.
impl From<isize> for Index[src]
impl From<isize> for Index