pub struct ThreadAllocScope { /* private fields */ }Expand description
RAII scope that counts heap allocations on the current thread from zero
and restores prior counter state on drop. Requires LocalAllocCounter.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ThreadAllocScope
impl RefUnwindSafe for ThreadAllocScope
impl Send for ThreadAllocScope
impl Sync for ThreadAllocScope
impl Unpin for ThreadAllocScope
impl UnwindSafe for ThreadAllocScope
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