Enum lua::index::Index[−][src]

pub enum Index {
    Top(usize),
    Bottom(usize),
}

Enum to index the stack relative to the Top and Bottom

Variants

index from the top of the stack

index from the bottom of the stack

Methods

impl Index
[src]

TOP: Index = Index::Top(1)

Top of the stack. Equivalent to -1

BOTTOM: Index = Index::Bottom(1)

Bottom of the stack. Equivalent to 1

REGITRY: Index = Index::Top(1001000)

Index of the registry table. Equivalent to LUA_REGISTRYINDEX

Trait Implementations

impl Debug for Index
[src]

Formats the value using the given formatter. Read more

impl Clone for Index
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Index
[src]

impl Eq for Index
[src]

impl PartialEq for Index
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl From<isize> for Index
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Index

impl Sync for Index