pub struct VirtualAddress(/* private fields */);
Implementations§
Source§impl VirtualAddress
impl VirtualAddress
Sourcepub const fn with_offset_checked(self, value: u64) -> Result<Self, ()>
pub const fn with_offset_checked(self, value: u64) -> Result<Self, ()>
Bits: 0..12
Sourcepub const fn with_offset(self, value: u64) -> Self
pub const fn with_offset(self, value: u64) -> Self
Bits: 0..12
Sourcepub const fn set_offset(&mut self, value: u64)
pub const fn set_offset(&mut self, value: u64)
Bits: 0..12
Sourcepub const fn with_lvl3_checked(self, value: usize) -> Result<Self, ()>
pub const fn with_lvl3_checked(self, value: usize) -> Result<Self, ()>
Bits: 12..21
Sourcepub const fn with_lvl2_checked(self, value: usize) -> Result<Self, ()>
pub const fn with_lvl2_checked(self, value: usize) -> Result<Self, ()>
Bits: 21..30
Sourcepub const fn with_lvl1_checked(self, value: usize) -> Result<Self, ()>
pub const fn with_lvl1_checked(self, value: usize) -> Result<Self, ()>
Bits: 30..39
Sourcepub const fn with_lvl0_checked(self, value: usize) -> Result<Self, ()>
pub const fn with_lvl0_checked(self, value: usize) -> Result<Self, ()>
Bits: 39..48
Sourcepub const fn with_asid_checked(self, value: usize) -> Result<Self, ()>
pub const fn with_asid_checked(self, value: usize) -> Result<Self, ()>
Bits: 48..64
Trait Implementations§
Source§impl Clone for VirtualAddress
impl Clone for VirtualAddress
Source§fn clone(&self) -> VirtualAddress
fn clone(&self) -> VirtualAddress
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for VirtualAddress
impl Debug for VirtualAddress
Source§impl Default for VirtualAddress
impl Default for VirtualAddress
Source§impl From<VirtualAddress> for u64
impl From<VirtualAddress> for u64
Source§fn from(v: VirtualAddress) -> u64
fn from(v: VirtualAddress) -> u64
Converts to this type from the input type.
Source§impl From<u64> for VirtualAddress
impl From<u64> for VirtualAddress
impl Copy for VirtualAddress
Auto Trait Implementations§
impl Freeze for VirtualAddress
impl RefUnwindSafe for VirtualAddress
impl Send for VirtualAddress
impl Sync for VirtualAddress
impl Unpin for VirtualAddress
impl UnwindSafe for VirtualAddress
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