pub struct TranslationTableBaseRegister(/* private fields */);Expand description
Implementations§
Source§impl TranslationTableBaseRegister
impl TranslationTableBaseRegister
Sourcepub const RSVD1_MASK: u64
pub const RSVD1_MASK: u64
Mask of all reserved-as-1 bits.
Sourcepub const RSVD0_MASK: u64
pub const RSVD0_MASK: u64
Mask of all reserved-as-0 bits.
Sourcepub const DEFAULT: u64
pub const DEFAULT: u64
The default value of the layout, combining all field defaults and reserved-as values.
Sourcepub const ASID_SHIFT: usize = 48
pub const ASID_SHIFT: usize = 48
Bit shift (i.e., the low bit) of asid.
Sourcepub const ADDR_SHIFT: usize = 1
pub const ADDR_SHIFT: usize = 1
Bit shift (i.e., the low bit) of addr.
Sourcepub const FIELDS: [FieldMetadata<u64>; 3]
pub const FIELDS: [FieldMetadata<u64>; 3]
Metadata of all named fields in the layout.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new instance with reserved-as-1 bits set and
all other bits zeroed (i.e., with a value of
Self::RSVD1_MASK).
pub const fn bits(self) -> u64
Sourcepub const fn set_asid(&mut self, value: u16) -> &mut Self
pub const fn set_asid(&mut self, value: u16) -> &mut Self
Sets the value of TranslationTableBaseRegister[63:48].
Trait Implementations§
Source§impl Binary for TranslationTableBaseRegister
impl Binary for TranslationTableBaseRegister
Source§impl Clone for TranslationTableBaseRegister
impl Clone for TranslationTableBaseRegister
Source§fn clone(&self) -> TranslationTableBaseRegister
fn clone(&self) -> TranslationTableBaseRegister
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TranslationTableBaseRegister
Source§impl Debug for TranslationTableBaseRegister
impl Debug for TranslationTableBaseRegister
Source§impl Default for TranslationTableBaseRegister
impl Default for TranslationTableBaseRegister
Source§fn default() -> Self
fn default() -> Self
Returns an instance with the default bits set (i.e,. with a
value of Self::DEFAULT.
impl Eq for TranslationTableBaseRegister
Source§impl From<TranslationTableBaseRegister> for u64
impl From<TranslationTableBaseRegister> for u64
Source§fn from(value: TranslationTableBaseRegister) -> Self
fn from(value: TranslationTableBaseRegister) -> Self
Converts to this type from the input type.
Source§impl From<u64> for TranslationTableBaseRegister
impl From<u64> for TranslationTableBaseRegister
Source§impl IntoIterator for TranslationTableBaseRegister
impl IntoIterator for TranslationTableBaseRegister
Source§impl<'a> IntoIterator for &'a TranslationTableBaseRegister
impl<'a> IntoIterator for &'a TranslationTableBaseRegister
Source§impl LowerHex for TranslationTableBaseRegister
impl LowerHex for TranslationTableBaseRegister
Source§impl Octal for TranslationTableBaseRegister
impl Octal for TranslationTableBaseRegister
Source§impl PartialEq for TranslationTableBaseRegister
impl PartialEq for TranslationTableBaseRegister
impl StructuralPartialEq for TranslationTableBaseRegister
Auto Trait Implementations§
impl Freeze for TranslationTableBaseRegister
impl RefUnwindSafe for TranslationTableBaseRegister
impl Send for TranslationTableBaseRegister
impl Sync for TranslationTableBaseRegister
impl Unpin for TranslationTableBaseRegister
impl UnsafeUnpin for TranslationTableBaseRegister
impl UnwindSafe for TranslationTableBaseRegister
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)