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

pub struct StackFrame<'b, S = State> where
    S: StackState
{ /* fields omitted */ }

Implementations

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

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

pub fn new_frame(
    stack: &'b mut Stack,
    args: VmIndex,
    state: State
) -> Result<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 to_state(self) -> StackFrame<'b, State>[src]

pub fn frame(&self) -> &Frame<S>[src]

pub fn frame_mut(&mut self) -> FrameViewMut<'_, S>[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_value<'s>(&'s mut self) -> PopValue<'s>[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]

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

pub fn get_upvar(&self, index: VmIndex) -> Variants<'_>[src]

pub fn set_excess(&mut self, excess: bool)[src]

pub fn set_instruction_index(&mut self, instruction_index: usize)[src]

Trait Implementations

impl<'b, S> Debug for StackFrame<'b, S> where
    S: Debug + 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> DerefMut for StackFrame<'b, S> where
    S: StackState
[src]

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

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<RangeFrom<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<RangeTo<u32>> for StackFrame<'b, S> where
    S: StackState
[src]

type Output = [Value]

The returned type after indexing.

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

type Output = Value

The returned type after indexing.

impl<'b, S> IndexMut<Range<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> IndexMut<RangeFull> 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<u32> for StackFrame<'b, S> where
    S: StackState
[src]

Auto Trait Implementations

impl<'b, S = State> !RefUnwindSafe for StackFrame<'b, S>

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

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

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

impl<'b, S = State> !UnwindSafe for StackFrame<'b, S>

Blanket Implementations

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

impl<T> Any for T where
    T: Any

impl<Id> AsId<Id> for Id where
    Id: ?Sized
[src]

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

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

impl<'_, T> Captures<'_> for T[src]

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices[src]

type Remainder = Choices

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

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> From<T> for T[src]

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

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

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

impl<Source> Sculptor<HNil, HNil> for Source[src]

type Remainder = Source

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.