pub enum TranslationMode {
X86_64FourLevel,
X86_645Level,
AArch64FourLevel,
}Expand description
Translation mode for virtual-to-physical address translation.
Variants§
X86_64FourLevel
x86_64 4-level paging (PML4 → PDPT → PD → PT).
X86_645Level
x86_64 5-level paging (PML5 → PML4 → PDPT → PD → PT). Linux LA57, Windows Server 2025.
AArch64FourLevel
AArch64 4-level page tables (4K granule, 48-bit VA). Linux, Android, macOS ARM.
Trait Implementations§
Source§impl Clone for TranslationMode
impl Clone for TranslationMode
Source§fn clone(&self) -> TranslationMode
fn clone(&self) -> TranslationMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TranslationMode
Source§impl Debug for TranslationMode
impl Debug for TranslationMode
impl Eq for TranslationMode
Source§impl PartialEq for TranslationMode
impl PartialEq for TranslationMode
Source§fn eq(&self, other: &TranslationMode) -> bool
fn eq(&self, other: &TranslationMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TranslationMode
Auto Trait Implementations§
impl Freeze for TranslationMode
impl RefUnwindSafe for TranslationMode
impl Send for TranslationMode
impl Sync for TranslationMode
impl Unpin for TranslationMode
impl UnsafeUnpin for TranslationMode
impl UnwindSafe for TranslationMode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.