pub struct StackId(/* private fields */);Expand description
Interned identity of a captured stack trace.
Samples store this u32 handle instead of an owned Box<[usize]>, so the
per-live-allocation metadata is a fixed 4 bytes regardless of stack depth and
the actual frame arrays are deduplicated: the leak detector’s retained memory
scales with the number of distinct call sites, not the number of live
allocations (which can differ by orders of magnitude).
Trait Implementations§
impl Copy for StackId
impl Eq for StackId
impl StructuralPartialEq for StackId
Auto Trait Implementations§
impl Freeze for StackId
impl RefUnwindSafe for StackId
impl Send for StackId
impl Sync for StackId
impl Unpin for StackId
impl UnsafeUnpin for StackId
impl UnwindSafe for StackId
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