pub struct StepStack {
stack: Vec<StepRecord>,
}Expand description
This type serves for recording the stack of executed steps in a thread-local variable.
It is used to print the currently running step stack in places where we do not have easy access to the currently used builder, e.g. in exit! macros or the panic handler.
Fields§
§stack: Vec<StepRecord>Implementations§
Source§impl StepStack
impl StepStack
Sourcepub fn with_current<F>(func: F)
pub fn with_current<F>(func: F)
Return the currently active step stack for this thread.
const fn new() -> Self
pub fn get_active_steps(&self) -> impl Iterator<Item = &StepRecord>
pub fn clear(&mut self)
pub fn push(&mut self, record: StepRecord)
pub fn pop(&mut self)
Auto Trait Implementations§
impl Freeze for StepStack
impl RefUnwindSafe for StepStack
impl Send for StepStack
impl Sync for StepStack
impl Unpin for StepStack
impl UnsafeUnpin for StepStack
impl UnwindSafe for StepStack
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
§impl<T> Pointable for T
impl<T> Pointable for T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes