pub struct ThreadLocalAllocator { /* private fields */ }Expand description
Thread-local allocator pool
Implementations§
Source§impl ThreadLocalAllocator
impl ThreadLocalAllocator
Sourcepub fn stats(&self) -> (Arc<AllocatorStats>, Arc<AllocatorStats>)
pub fn stats(&self) -> (Arc<AllocatorStats>, Arc<AllocatorStats>)
Get combined statistics
Trait Implementations§
Source§impl Allocator for ThreadLocalAllocator
impl Allocator for ThreadLocalAllocator
impl Send for ThreadLocalAllocator
impl Sync for ThreadLocalAllocator
Auto Trait Implementations§
impl Freeze for ThreadLocalAllocator
impl !RefUnwindSafe for ThreadLocalAllocator
impl Unpin for ThreadLocalAllocator
impl UnsafeUnpin for ThreadLocalAllocator
impl !UnwindSafe for ThreadLocalAllocator
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