pub struct CallStack(/* private fields */);
Implementations§
source§impl CallStack
impl CallStack
pub fn empty() -> CallStack
pub fn push( &mut self, reference_loc: Option<TextLocation>, function: Symbol, function_loc: TextLocation, arguments: Vec<Value> ) -> bool
pub fn pop(&mut self)
pub fn run<F>( &mut self, reference_loc: Option<TextLocation>, function: Symbol, function_loc: TextLocation, arguments: Vec<Value>, f: F ) -> boolwhere F: Fn(),
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, StackFrame>
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for CallStack
impl Send for CallStack
impl Sync for CallStack
impl Unpin for CallStack
impl UnwindSafe for CallStack
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more