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<'_, '_>) { ... }
}
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§
Sourcefn is_page(&self) -> bool
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.
Sourcefn set_is_page(&mut self, value: bool)
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.
Sourcefn with_is_page(&mut self, value: bool) -> Self
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.
Sourcefn fmt_fields(&self, f: &mut DebugStruct<'_, '_>)
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.