pub enum PageAlignment {
None,
Aligned {
page_size: usize,
},
}Expand description
Whether to pad the body for page-cache friendliness on disk.
Padding is invisible to readers; it only affects file size.
Variants§
None
No padding. Tightest file size; best for in-memory or network use.
Aligned
Pad so that no container node ≤ page_size straddles a page
boundary and the file size is a multiple of page_size.
Trait Implementations§
Source§impl Clone for PageAlignment
impl Clone for PageAlignment
Source§fn clone(&self) -> PageAlignment
fn clone(&self) -> PageAlignment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PageAlignment
impl RefUnwindSafe for PageAlignment
impl Send for PageAlignment
impl Sync for PageAlignment
impl Unpin for PageAlignment
impl UnsafeUnpin for PageAlignment
impl UnwindSafe for PageAlignment
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