pub struct PageLayout<H, T> { /* private fields */ }
Expand description
Describes the memory layout for a Page.
Implementations§
Source§impl<H, T> PageLayout<H, T>
impl<H, T> PageLayout<H, T>
Sourcepub fn with_capacity(items: u32) -> Self
pub fn with_capacity(items: u32) -> Self
Creates a PageLayout
describing a page with the given item capacity.
§Note
Will panic if items is 0 or the header plus padding is extremely large (u32::MAX - 8 bytes)
Trait Implementations§
Source§impl<H, T> Clone for PageLayout<H, T>
impl<H, T> Clone for PageLayout<H, T>
impl<H, T> Copy for PageLayout<H, T>
Auto Trait Implementations§
impl<H, T> Freeze for PageLayout<H, T>
impl<H, T> RefUnwindSafe for PageLayout<H, T>where
H: RefUnwindSafe,
T: RefUnwindSafe,
impl<H, T> Send for PageLayout<H, T>
impl<H, T> Sync for PageLayout<H, T>
impl<H, T> Unpin for PageLayout<H, T>
impl<H, T> UnwindSafe for PageLayout<H, T>where
H: UnwindSafe,
T: UnwindSafe,
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