[][src]Struct gluon_vm::stack::StackFrame

pub struct StackFrame<'b, S = State> where
    S: StackState
{ pub stack: &'b mut Stack, pub frame: Frame<S>, }

Fields

stack: &'b mut Stackframe: Frame<S>

Methods

impl<'a: 'b, 'b> StackFrame<'b, State>[src]

pub fn from_state<T>(self) -> StackFrame<'b, T> where
    T: StackState
[src]

pub fn frame(
    stack: &'b mut Stack,
    args: VmIndex,
    state: State
) -> StackFrame<'b>
[src]

impl<'a: 'b, 'b> StackFrame<'b, ExternState>[src]

pub fn into_lock(self) -> Lock[src]

Lock the stack below the current offset

impl<'a: 'b, 'b, S> StackFrame<'b, S> where
    S: StackState
[src]

pub fn take_stack(self) -> &'b mut Stack where
    S: Copy
[src]

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

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

pub fn top(&self) -> &Value[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 get_variant(&self, index: VmIndex) -> Option<Variants>[src]

pub fn get_value<'vm, 'value, T>(
    &'value self,
    thread: &'vm Thread,
    index: VmIndex
) -> Option<T> where
    T: Getable<'vm, 'value>, 
[src]

pub fn insert_slice(&mut self, index: VmIndex, values: &[Value])[src]

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

pub fn excess_args(&self) -> Option<GcPtr<DataStruct>>[src]

pub fn store_frame(&mut self) where
    S: StackState + Copy
[src]

impl<'b> StackFrame<'b, ClosureState>[src]

pub fn get_upvar(&self, index: VmIndex) -> &Value[src]

Trait Implementations

impl<'b, 'c, T, S> Extend<&'c T> for StackFrame<'b, S> where
    T: StackPrimitive + 'c,
    S: StackState
[src]

impl<'b, S> Drop for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> DerefMut for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> Deref for StackFrame<'b, S> where
    S: StackState
[src]

type Target = [Value]

The resulting type after dereferencing.

impl<'b, S> Index<u32> for StackFrame<'b, S> where
    S: StackState
[src]

type Output = Value

The returned type after indexing.

impl<'b, S> Index<RangeFull> for StackFrame<'b, S> where
    S: StackState
[src]

type Output = [Value]

The returned type after indexing.

impl<'b, S> Index<Range<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

type Output = [Value]

The returned type after indexing.

impl<'b, S> Index<RangeTo<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

type Output = [Value]

The returned type after indexing.

impl<'b, S> Index<RangeFrom<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

type Output = [Value]

The returned type after indexing.

impl<'b, S> IndexMut<u32> for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> IndexMut<RangeFull> for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> IndexMut<Range<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> IndexMut<RangeTo<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> IndexMut<RangeFrom<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

impl<'b, S> Debug for StackFrame<'b, S> where
    S: Debug + StackState
[src]

Auto Trait Implementations

impl<'b, S> Send for StackFrame<'b, S> where
    S: Send

impl<'b, S> Sync for StackFrame<'b, S> where
    S: Sync

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 = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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]