pub struct Page2M;
Expand description
Marker struct used to indicate a page size of 2MiB.
Trait Implementations§
§impl Ord for Page2M
impl Ord for Page2M
§impl PageSize for Page2M
impl PageSize for Page2M
const SIZE: MemChunkSize = MemChunkSize::Huge2M
const NUM_4K_PAGES: usize = 512usize
const SIZE_IN_BYTES: usize = 2_097_152usize
§impl PartialOrd<Page2M> for Page2M
impl PartialOrd<Page2M> for Page2M
§fn partial_cmp(&self, other: &Page2M) -> Option<Ordering>
fn partial_cmp(&self, other: &Page2M) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Page2M
impl Eq for Page2M
impl StructuralEq for Page2M
impl StructuralPartialEq for Page2M
Auto Trait Implementations§
impl RefUnwindSafe for Page2M
impl Send for Page2M
impl Sync for Page2M
impl Unpin for Page2M
impl UnwindSafe for Page2M
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