Struct runestick::Stack [−][src]
pub struct Stack { /* fields omitted */ }
Expand description
The stack of the virtual machine, where all values are stored.
Implementations
Extend the current stack.
Get the offset that corresponds to the top of the stack right now.
Construct a new stack with the given capacity.
Get the given slice of the stack, if it isn’t out of range.
Get the last position on the stack.
Access the value at the given frame offset.
Peek the value at the given offset from the top.
Get the offset at the given location.
Pop a reference to a value from the stack.
Address a value on the stack.
Address a value on the stack.
Pop the given number of elements from the stack.
Pop a sequence of values from the stack.
pub fn drain_stack_top(
&mut self,
count: usize
) -> Result<impl DoubleEndedIterator<Item = Value> + '_, StackError>
pub fn drain_stack_top(
&mut self,
count: usize
) -> Result<impl DoubleEndedIterator<Item = Value> + '_, StackError>
Drain the top count
elements of the stack in the order that they were
pushed, from bottom to top.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Stack
impl !UnwindSafe for Stack
Blanket Implementations
Mutably borrows from an owned value. Read more