pub struct MemorySlab { /* private fields */ }Expand description
A contiguous block of memory backing all container arenas.
Implementations§
Source§impl MemorySlab
impl MemorySlab
Sourcepub fn new(config: MemoryConfig) -> Result<Self>
pub fn new(config: MemoryConfig) -> Result<Self>
Allocate a new slab according to config.
Sourcepub fn total_size(&self) -> usize
pub fn total_size(&self) -> usize
Total slab size in bytes.
Sourcepub fn config(&self) -> &MemoryConfig
pub fn config(&self) -> &MemoryConfig
Reference to the underlying config.
Auto Trait Implementations§
impl Freeze for MemorySlab
impl RefUnwindSafe for MemorySlab
impl Send for MemorySlab
impl Sync for MemorySlab
impl Unpin for MemorySlab
impl UnsafeUnpin for MemorySlab
impl UnwindSafe for MemorySlab
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