Struct gluon_vm::stack::Stack
[−]
[src]
pub struct Stack { // some fields omitted }
Methods
impl Stack
[src]
fn new() -> Stack
fn pop(&mut self) -> Value
fn push(&mut self, v: Value)
fn remove_range(&mut self, from: VMIndex, to: VMIndex)
fn len(&self) -> VMIndex
fn get_values(&self) -> &[Value]
fn get_frames(&self) -> &[Frame]
fn release_lock(&mut self, lock: Lock)
Release a lock on the stack.
Panics if the lock is not the top-most lock
Trait Implementations
impl Debug for Stack
[src]
impl Index<VMIndex> for Stack
[src]
type Output = Value
The returned type after indexing
fn index(&self, index: VMIndex) -> &Value
The method for the indexing (Foo[Bar]
) operation
impl IndexMut<VMIndex> for Stack
[src]
fn index_mut(&mut self, index: VMIndex) -> &mut Value
The method for the indexing (Foo[Bar]
) operation
impl Index<RangeFrom<VMIndex>> for Stack
[src]
type Output = [Value]
The returned type after indexing
fn index(&self, range: RangeFrom<VMIndex>) -> &[Value]
The method for the indexing (Foo[Bar]
) operation