[][src]Struct gluon_vm::stack::Stack

pub struct Stack { /* fields omitted */ }

Methods

impl Stack[src]

pub fn new() -> Stack[src]

pub fn pop(&mut self) -> Value[src]

pub fn pop_many(&mut self, count: VmIndex)[src]

pub fn clear(&mut self)[src]

pub fn slide(&mut self, count: VmIndex)[src]

pub fn push<T>(&mut self, v: T) where
    T: StackPrimitive
[src]

pub fn last(&self) -> Option<Variants>[src]

pub fn get_variant(&self, index: VmIndex) -> Option<Variants>[src]

pub fn remove_range(&mut self, from: VmIndex, to: VmIndex)[src]

pub fn len(&self) -> VmIndex[src]

pub fn get_values(&self) -> &[Value][src]

pub fn get_frames(&self) -> &[Frame<State>][src]

pub fn get_frames_mut(&mut self) -> &mut [Frame<State>][src]

pub fn current_frame<S>(&mut self) -> StackFrame<S> where
    S: StackState
[src]

pub fn release_lock(&mut self, lock: Lock)[src]

Release a lock on the stack.

Panics if the lock is not the top-most lock

pub fn stacktrace(&self, frame_level: usize) -> Stacktrace[src]

Creates a stackrace starting from frame_level

Trait Implementations

impl Traverseable for Stack[src]

impl<'c, T> Extend<&'c T> for Stack where
    T: StackPrimitive + 'c, 
[src]

impl Debug for Stack[src]

impl Index<u32> for Stack[src]

type Output = Value

The returned type after indexing.

impl Index<RangeFrom<u32>> for Stack[src]

type Output = [Value]

The returned type after indexing.

impl Index<RangeTo<u32>> for Stack[src]

type Output = [Value]

The returned type after indexing.

impl Index<RangeFull> for Stack[src]

type Output = [Value]

The returned type after indexing.

impl IndexMut<u32> for Stack[src]

Auto Trait Implementations

impl Send for Stack

impl Sync for Stack

Blanket Implementations

impl<D, T> FromPtr for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<Choices> CoproductSubsetter for Choices[src]

type Remainder = Choices

impl<Source> Sculptor for Source[src]

type Remainder = Source

impl<T, U, I> LiftInto for T where
    U: LiftFrom<T, I>, 
[src]

impl<T> Any for T where
    T: Any
[src]