struct LeakTracker {
next_id: u64,
live_sites: BTreeMap<u64, &'static str>,
}Fields§
§next_id: u64§live_sites: BTreeMap<u64, &'static str>Implementations§
Source§impl LeakTracker
impl LeakTracker
Sourcefn register_alloc(&mut self, site: &'static str) -> u64
fn register_alloc(&mut self, site: &'static str) -> u64
Register one live pointer allocation and return its unique id.
Sourcefn unregister_alloc(&mut self, id: u64)
fn unregister_alloc(&mut self, id: u64)
Unregister one live pointer allocation by id.
Trait Implementations§
Source§impl Debug for LeakTracker
impl Debug for LeakTracker
Source§impl Default for LeakTracker
impl Default for LeakTracker
Source§fn default() -> LeakTracker
fn default() -> LeakTracker
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LeakTracker
impl RefUnwindSafe for LeakTracker
impl Send for LeakTracker
impl Sync for LeakTracker
impl Unpin for LeakTracker
impl UnwindSafe for LeakTracker
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