pub struct LookupScratch { /* private fields */ }Expand description
Reusable buffer for allocation-free address lookup.
Reusing one scratch across lookups avoids allocating per address. It carries no state between calls, so one per thread is enough.
Used by Gsym::lookup_with_options and Gsym::for_each_frame.
Implementations§
Source§impl LookupScratch
impl LookupScratch
Sourcepub fn with_capacity(inline_depth: usize) -> Self
pub fn with_capacity(inline_depth: usize) -> Self
Creates scratch storage preallocated for inline_depth nested frames.
Trait Implementations§
Source§impl Debug for LookupScratch
impl Debug for LookupScratch
Source§impl Default for LookupScratch
impl Default for LookupScratch
Source§fn default() -> LookupScratch
fn default() -> LookupScratch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LookupScratch
impl RefUnwindSafe for LookupScratch
impl Send for LookupScratch
impl Sync for LookupScratch
impl Unpin for LookupScratch
impl UnsafeUnpin for LookupScratch
impl UnwindSafe for LookupScratch
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