pub struct CallStack {
records: [CallRecord; 32],
len: usize,
}
Expand description
Tracker for nested active function or instruction calls.
Fields§
§records: [CallRecord; 32]
§len: usize
Implementations§
Source§impl CallStack
impl CallStack
pub fn clear(&mut self)
pub fn push(&mut self, record: CallRecord) -> Result<(), HintErrorKind>
pub fn peek(&self) -> Option<&CallRecord>
pub fn pop(&mut self) -> Result<CallRecord, HintErrorKind>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CallStack
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