# PageWithL4 in riscv::addr::page - Rust
API documentation for the Rust `PageWithL4` trait in crate `riscv`.
Keywords: rust, rustlang, rust-lang, PageWithL4

# Trait riscv::addr::page::PageWithL4

source · [−]

    pub trait PageWithL4 {
        fn p4_index(&self) -> usize;
        fn p3_index(&self) -> usize;
        fn p2_index(&self) -> usize;
        fn p1_index(&self) -> usize;
        fn from_page_table_indices(
            p4_index: usize,
            p3_index: usize,
            p2_index: usize,
            p1_index: usize
        ) -> Self;
    }

## Required methods

source

#### fn p4_index(&self) -> usize

source

#### fn p3_index(&self) -> usize

source

#### fn p2_index(&self) -> usize

source

#### fn p1_index(&self) -> usize

source

#### fn from_page_table_indices(
p4_index: usize,
p3_index: usize,
p2_index: usize,
p1_index: usize
) -> Self

## Implementors

source

### impl<T: AddressL4 + PhysicalAddress> PageWithL4 for FrameWith<T>

source

### impl<T: AddressL4 + VirtualAddress> PageWithL4 for PageWith<T>