Trait x86_64::structures::paging::page::PageSize[][src]

pub trait PageSize: Copy + Eq + PartialOrd + Ord {
    const SIZE: u64;
    const SIZE_AS_DEBUG_STR: &'static str;
}
Expand description

Trait for abstracting over the three possible page sizes on x86_64, 4KiB, 2MiB, 1GiB.

Associated Constants

const SIZE: u64[src]

Expand description

The page size in bytes.

const SIZE_AS_DEBUG_STR: &'static str[src]

Expand description

A string representation of the page size for debug output.

Loading content...

Implementors

impl PageSize for Size1GiB[src]

const SIZE: u64[src]

const SIZE_AS_DEBUG_STR: &'static str[src]

impl PageSize for Size2MiB[src]

const SIZE: u64[src]

const SIZE_AS_DEBUG_STR: &'static str[src]

impl PageSize for Size4KiB[src]

const SIZE: u64[src]

const SIZE_AS_DEBUG_STR: &'static str[src]

Loading content...