pub struct SlabAllocator { /* private fields */ }Expand description
Slab allocator for fixed-size blocks
Implementations§
Source§impl SlabAllocator
impl SlabAllocator
Sourcepub fn stats(&self) -> Arc<AllocatorStats>
pub fn stats(&self) -> Arc<AllocatorStats>
Get statistics
Sourcepub fn check_leaks(&self) -> Result<()>
pub fn check_leaks(&self) -> Result<()>
Check for memory leaks (debug mode only)
Trait Implementations§
Source§impl Allocator for SlabAllocator
impl Allocator for SlabAllocator
Source§impl Default for SlabAllocator
impl Default for SlabAllocator
impl Send for SlabAllocator
impl Sync for SlabAllocator
Auto Trait Implementations§
impl Freeze for SlabAllocator
impl !RefUnwindSafe for SlabAllocator
impl Unpin for SlabAllocator
impl UnsafeUnpin for SlabAllocator
impl !UnwindSafe for SlabAllocator
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