#[repr(transparent)]pub struct VirtualAddress(pub u64);Tuple Fields§
§0: u64Implementations§
Source§impl VirtualAddress
impl VirtualAddress
pub const fn is_null(self) -> bool
pub const fn is_kernel(self) -> bool
pub const fn pml4e(self) -> u64
pub const fn pdpe(self) -> u64
pub const fn pde(self) -> u64
pub const fn pte(self) -> u64
Sourcepub const fn page_offset(self) -> u64
pub const fn page_offset(self) -> u64
Offset for normal pages (4Ko)
Sourcepub const fn large_page_offset(self) -> u64
pub const fn large_page_offset(self) -> u64
Offset for large pages (2Mo)
Sourcepub const fn huge_page_offset(self) -> u64
pub const fn huge_page_offset(self) -> u64
Offset for huge pages (1Go)
Trait Implementations§
Source§impl Add<i32> for VirtualAddress
impl Add<i32> for VirtualAddress
Source§impl Add<i64> for VirtualAddress
impl Add<i64> for VirtualAddress
Source§impl Add<u32> for VirtualAddress
impl Add<u32> for VirtualAddress
Source§impl Add<u64> for VirtualAddress
impl Add<u64> for VirtualAddress
Source§impl AddAssign<u64> for VirtualAddress
impl AddAssign<u64> for VirtualAddress
Source§fn add_assign(&mut self, rhs: u64)
fn add_assign(&mut self, rhs: u64)
Performs the
+= operation. Read moreSource§impl Clone for VirtualAddress
impl Clone for VirtualAddress
Source§fn clone(&self) -> VirtualAddress
fn clone(&self) -> VirtualAddress
Returns a duplicate 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§fn default() -> VirtualAddress
fn default() -> VirtualAddress
Returns the “default value” for a type. Read more
Source§impl Hash for VirtualAddress
impl Hash for VirtualAddress
Source§impl LowerHex for VirtualAddress
impl LowerHex for VirtualAddress
Source§impl Ord for VirtualAddress
impl Ord for VirtualAddress
Source§fn cmp(&self, other: &VirtualAddress) -> Ordering
fn cmp(&self, other: &VirtualAddress) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for VirtualAddress
impl PartialEq for VirtualAddress
Source§impl PartialOrd for VirtualAddress
impl PartialOrd for VirtualAddress
Source§impl Sub<u64> for VirtualAddress
impl Sub<u64> for VirtualAddress
Source§impl Sub for VirtualAddress
impl Sub for VirtualAddress
Source§impl SubAssign<u64> for VirtualAddress
impl SubAssign<u64> for VirtualAddress
Source§fn sub_assign(&mut self, rhs: u64)
fn sub_assign(&mut self, rhs: u64)
Performs the
-= operation. Read moreSource§impl UpperHex for VirtualAddress
impl UpperHex for VirtualAddress
impl Copy for VirtualAddress
impl Eq for VirtualAddress
impl Pod for VirtualAddress
impl StructuralPartialEq 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
Source§impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
Source§type Bits = T
type Bits = T
Self must have the same layout as the specified Bits except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern.Source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self.Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.