[−][src]Struct gluon_vm::stack::Stack
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]
T: StackPrimitive,
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]
S: StackState,
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]
T: StackPrimitive + 'c,
fn extend<I>(&mut self, iter: I) where
I: IntoIterator<Item = &'c T>,
[src]
I: IntoIterator<Item = &'c T>,
impl Debug for Stack
[src]
impl Index<u32> for Stack
[src]
impl Index<RangeFrom<u32>> for Stack
[src]
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeFrom<VmIndex>) -> &[Value]
[src]
impl Index<RangeTo<u32>> for Stack
[src]
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeTo<VmIndex>) -> &[Value]
[src]
impl Index<RangeFull> for Stack
[src]
type Output = [Value]
The returned type after indexing.
fn index(&self, range: RangeFull) -> &[Value]
[src]
impl IndexMut<u32> for Stack
[src]
Auto Trait Implementations
Blanket Implementations
impl<D, T> FromPtr for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<Choices> CoproductSubsetter for Choices
[src]
type Remainder = Choices
fn subset(
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
[src]
self
) -> Result<CNil, <Choices as CoproductSubsetter<CNil, HNil>>::Remainder>
impl<Source> Sculptor for Source
[src]
impl<T, U, I> LiftInto for T where
U: LiftFrom<T, I>,
[src]
U: LiftFrom<T, I>,
impl<T> Any for T where
T: Any,
[src]
T: Any,