pub struct MMBlocks { /* private fields */ }Expand description
An MMFile that does not have compactness as an invariant
Implementations§
Source§impl MMBlocks
impl MMBlocks
Sourcepub fn from_bytes(bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
Create a new MMBlocks initialized with contents
Sourcepub fn is_compact(&self) -> bool
pub fn is_compact(&self) -> bool
Checks if the entire file is a single allocation.
Sourcepub fn to_compact(&mut self)
pub fn to_compact(&mut self)
Ensure this blocks is compact; reallocates if it isn’t.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MMBlocks
impl RefUnwindSafe for MMBlocks
impl !Send for MMBlocks
impl !Sync for MMBlocks
impl Unpin for MMBlocks
impl UnwindSafe for MMBlocks
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