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

pub struct Stack { /* fields omitted */ }

Implementations

impl Stack[src]

pub fn new() -> Stack[src]

pub fn set_max_stack_size(&mut self, max_stack_size: VmIndex)[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 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 Debug for Stack[src]

impl<'de, 'gc> DeserializeState<'de, DeSeed<'gc>> for Stack[src]

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

impl Index<RangeFrom<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 Index<RangeTo<u32>> for Stack[src]

type Output = [Value]

The returned type after indexing.

impl Index<u32> for Stack[src]

type Output = Value

The returned type after indexing.

impl IndexMut<u32> for Stack[src]

impl SerializeState<SeSeed> for Stack[src]

impl Trace for Stack[src]

Auto Trait Implementations

impl !RefUnwindSafe for Stack

impl Send for Stack

impl Sync for Stack

impl Unpin for Stack

impl !UnwindSafe for Stack

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.