pub struct Stack { /* private fields */ }
Implementations
sourceimpl Stack
impl Stack
pub fn new() -> Stack
pub fn pop(&mut self) -> Value
pub fn pop_many(&mut self, count: VmIndex)
pub fn slide(&mut self, count: VmIndex)
pub fn push<T>(&mut self, v: T)where
T: StackPrimitive,
pub fn last(&self) -> Option<Variants<'_>>
pub fn get_variant(&self, index: VmIndex) -> Option<Variants<'_>>
pub fn remove_range(&mut self, from: VmIndex, to: VmIndex)
pub fn len(&self) -> VmIndex
pub fn get_values(&self) -> &[Value]
pub fn get_frames(&self) -> &[Frame<State>]
pub fn get_frames_mut(&mut self) -> &mut [Frame<State>]
pub fn current_frame<S>(&mut self) -> StackFrame<'_, S>where
S: StackState,
sourcepub fn release_lock(&mut self, lock: Lock)
pub fn release_lock(&mut self, lock: Lock)
Release a lock on the stack.
Panics if the lock is not the top-most lock
sourcepub fn stacktrace(&self, frame_level: usize) -> Stacktrace
pub fn stacktrace(&self, frame_level: usize) -> Stacktrace
Creates a stackrace starting from frame_level
Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more