pub trait Level {
    const NAME: &'static str;
    const SUBLEVELS: usize;
    const INDEX_SHIFT: usize = _;

    // Required method
    fn table_addr(v: VAddr) -> VAddr;

    // Provided method
    fn index_of(v: VAddr) -> usize { ... }
}

Required Associated Constants§

source

const NAME: &'static str

source

const SUBLEVELS: usize

Provided Associated Constants§

Required Methods§

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Level for Pd

source§

const NAME: &'static str = "PD"

source§

const SUBLEVELS: usize = 1usize

source§

impl Level for Pdpt

source§

const SUBLEVELS: usize = 2usize

source§

const NAME: &'static str = "PDPT"

source§

impl Level for Pml4

source§

const SUBLEVELS: usize = 3usize

source§

const NAME: &'static str = "PML4"

source§

impl Level for Pt

source§

const NAME: &'static str = "PT"

source§

const SUBLEVELS: usize = 0usize