Enum page_table::PageSize
source · #[repr(usize)]pub enum PageSize {
Size4K = 4_096,
Size2M = 2_097_152,
Size1G = 1_073_741_824,
}
Expand description
The page sizes supported by the hardware page table.
Variants§
Size4K = 4_096
Size of 4 kilobytes (212 bytes).
Size2M = 2_097_152
Size of 2 megabytes (221 bytes).
Size1G = 1_073_741_824
Size of 1 gigabytes (230 bytes).
Implementations§
Trait Implementations§
source§impl PartialEq for PageSize
impl PartialEq for PageSize
impl Copy for PageSize
impl Eq for PageSize
impl StructuralEq for PageSize
impl StructuralPartialEq for PageSize
Auto Trait Implementations§
impl RefUnwindSafe for PageSize
impl Send for PageSize
impl Sync for PageSize
impl Unpin for PageSize
impl UnwindSafe for PageSize
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