Trait HybridPageTableEntry

Source
pub trait HybridPageTableEntry: GenericPageTableEntry {
    // Provided methods
    fn is_page(&self) -> bool { ... }
    fn set_is_page(&mut self, value: bool) { ... }
    fn with_is_page(&mut self, value: bool) -> Self { ... }
    fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>) { ... }
}
Available on x86 or x86-64 only.
Expand description

A page table entry (any level) that either directly maps a page or points to another page table.

This trait provides an implementation for DirectPageTableEntry, but its methods are only applicable if is_page is true.

Provided Methods§

Source

fn is_page(&self) -> bool

PS: Indicates that this entry directly maps a page. Otherwise, this is a pointer to a lower-level page table.

In 32-bit mode, requires ControlRegister4::page_size_extensions. Always applicable in 64-bit mode.

Source

fn set_is_page(&mut self, value: bool)

PS: Indicates that this entry directly maps a page. Otherwise, this is a pointer to a lower-level page table.

In 32-bit mode, requires ControlRegister4::page_size_extensions. Always applicable in 64-bit mode.

Source

fn with_is_page(&mut self, value: bool) -> Self

PS: Indicates that this entry directly maps a page. Otherwise, this is a pointer to a lower-level page table.

In 32-bit mode, requires ControlRegister4::page_size_extensions. Always applicable in 64-bit mode.

Source

fn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)

Print this object’s bitfield values. Helper method for Debug implementations.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§