# PTEIterableSlice in riscv::paging - Rust
API documentation for the Rust `PTEIterableSlice` trait in crate `riscv`.
Keywords: rust, rustlang, rust-lang, PTEIterableSlice

# Trait riscv::paging::PTEIterableSlice

source · [−]

    pub trait PTEIterableSlice<T> {
        fn to_pte_slice<'a>(&'a self) -> &'a [T];
        fn to_pte_slice_mut<'a>(&'a mut self) -> &'a mut [T];
        fn pte_index(&self, index: usize) -> &T;
        fn pte_index_mut(&mut self, index: usize) -> &mut T;
    }

## Required methods

source

#### fn to_pte_slice<'a>(&'a self) -> &'a [T]

source

#### fn to_pte_slice_mut<'a>(&'a mut self) -> &'a mut [T]

source

#### fn pte_index(&self, index: usize) -> &T

source

#### fn pte_index_mut(&mut self, index: usize) -> &mut T

## Implementors

source

### impl PTEIterableSlice<PageTableEntryX32> for Entries32

source

### impl PTEIterableSlice<PageTableEntryX32> for Entries32X4

source

### impl PTEIterableSlice<PageTableEntryX64> for Entries64

source

### impl PTEIterableSlice<PageTableEntryX64> for Entries64X4