[−][src]Struct hermit::mm::VirtAddr
A wrapper for a virtual address.
Implementations
impl VAddr[src]
pub fn from_u64(v: u64) -> VAddr[src]
Convert from u64
pub fn from_usize(v: usize) -> VAddr[src]
Convert from usize
pub fn as_u64(self) -> u64[src]
Convert to u64
pub fn as_usize(self) -> usize[src]
Convert to usize
pub fn as_mut_ptr<T>(self) -> *mut T[src]
Convert to mutable pointer.
pub fn as_ptr<T>(self) -> *const T[src]
Convert to pointer.
pub fn zero() -> VAddr[src]
Physical Address zero.
pub fn is_zero(self) -> bool[src]
Is zero?
pub fn base_page_offset(self) -> u64[src]
Offset within the 4 KiB page.
pub fn large_page_offset(self) -> u64[src]
Offset within the 2 MiB page.
pub fn huge_page_offset(self) -> u64[src]
Offset within the 1 GiB page.
pub fn align_down_to_base_page(self) -> VAddr[src]
Return address of nearest 4 KiB page (lower or equal than self).
pub fn align_down_to_large_page(self) -> VAddr[src]
Return address of nearest 2 MiB page (lower or equal than self).
pub fn align_down_to_huge_page(self) -> VAddr[src]
Return address of nearest 1 GiB page (lower or equal than self).
pub fn align_up_to_base_page(self) -> VAddr[src]
Return address of nearest 4 KiB page (higher or equal than self).
pub fn align_up_to_large_page(self) -> VAddr[src]
Return address of nearest 2 MiB page (higher or equal than self).
pub fn align_up_to_huge_page(self) -> VAddr[src]
Return address of nearest 1 GiB page (higher or equal than self).
pub fn is_base_page_aligned(self) -> bool[src]
Is this address aligned to a 4 KiB page?
pub fn is_large_page_aligned(self) -> bool[src]
Is this address aligned to a 2 MiB page?
pub fn is_huge_page_aligned(self) -> bool[src]
Is this address aligned to a 1 GiB page?
pub fn is_aligned<U>(self, align: U) -> bool where
U: Into<u64> + Copy, [src]
U: Into<u64> + Copy,
Trait Implementations
impl Add<VAddr> for VAddr[src]
type Output = VAddr
The resulting type after applying the + operator.
fn add(self, rhs: VAddr) -> <VAddr as Add<VAddr>>::Output[src]
impl Add<u64> for VAddr[src]
type Output = VAddr
The resulting type after applying the + operator.
fn add(self, rhs: u64) -> <VAddr as Add<u64>>::Output[src]
impl Add<usize> for VAddr[src]
type Output = VAddr
The resulting type after applying the + operator.
fn add(self, rhs: usize) -> <VAddr as Add<usize>>::Output[src]
impl AddAssign<VAddr> for VAddr[src]
fn add_assign(&mut self, other: VAddr)[src]
impl AddAssign<u64> for VAddr[src]
fn add_assign(&mut self, offset: u64)[src]
impl AddAssign<usize> for VAddr[src]
fn add_assign(&mut self, offset: usize)[src]
impl Binary for VAddr[src]
impl BitAnd<VAddr> for VAddr[src]
type Output = VAddr
The resulting type after applying the & operator.
fn bitand(self, rhs: VAddr) -> <VAddr as BitAnd<VAddr>>::Output[src]
impl BitAnd<i32> for VAddr[src]
type Output = VAddr
The resulting type after applying the & operator.
fn bitand(self, rhs: i32) -> <VAddr as BitAnd<i32>>::Output[src]
impl BitAnd<u64> for VAddr[src]
type Output = VAddr
The resulting type after applying the & operator.
fn bitand(self, rhs: u64) -> <VAddr as BitAnd<u64>>::Output[src]
impl BitAnd<usize> for VAddr[src]
type Output = VAddr
The resulting type after applying the & operator.
fn bitand(self, rhs: usize) -> <VAddr as BitAnd<usize>>::Output[src]
impl BitOr<VAddr> for VAddr[src]
type Output = VAddr
The resulting type after applying the | operator.
fn bitor(self, rhs: VAddr) -> VAddr[src]
impl BitOr<u64> for VAddr[src]
type Output = VAddr
The resulting type after applying the | operator.
fn bitor(self, rhs: u64) -> <VAddr as BitOr<u64>>::Output[src]
impl BitOr<usize> for VAddr[src]
type Output = VAddr
The resulting type after applying the | operator.
fn bitor(self, rhs: usize) -> <VAddr as BitOr<usize>>::Output[src]
impl Clone for VAddr[src]
impl Copy for VAddr[src]
impl Debug for VAddr[src]
impl Display for VAddr[src]
impl Eq for VAddr[src]
impl From<i32> for VAddr[src]
impl From<u64> for VAddr[src]
impl From<usize> for VAddr[src]
impl Hash for VAddr[src]
fn hash<H>(&self, state: &mut H) where
H: Hasher, [src]
H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl Into<u64> for VAddr[src]
impl Into<usize> for VAddr[src]
impl LowerHex for VAddr[src]
impl Octal for VAddr[src]
impl Ord for VAddr[src]
fn cmp(&self, other: &VAddr) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<VAddr> for VAddr[src]
impl PartialOrd<VAddr> for VAddr[src]
fn partial_cmp(&self, other: &VAddr) -> Option<Ordering>[src]
fn lt(&self, other: &VAddr) -> bool[src]
fn le(&self, other: &VAddr) -> bool[src]
fn gt(&self, other: &VAddr) -> bool[src]
fn ge(&self, other: &VAddr) -> bool[src]
impl Pointer for VAddr[src]
impl Rem<VAddr> for VAddr[src]
type Output = VAddr
The resulting type after applying the % operator.
fn rem(self, rhs: VAddr) -> <VAddr as Rem<VAddr>>::Output[src]
impl Rem<u64> for VAddr[src]
type Output = u64
The resulting type after applying the % operator.
fn rem(self, rhs: <VAddr as Rem<u64>>::Output) -> <VAddr as Rem<u64>>::Output[src]
impl Rem<usize> for VAddr[src]
type Output = usize
The resulting type after applying the % operator.
fn rem(
self,
rhs: <VAddr as Rem<usize>>::Output
) -> <VAddr as Rem<usize>>::Output[src]
self,
rhs: <VAddr as Rem<usize>>::Output
) -> <VAddr as Rem<usize>>::Output
impl Shr<i32> for VAddr[src]
type Output = u64
The resulting type after applying the >> operator.
fn shr(self, rhs: i32) -> <VAddr as Shr<i32>>::Output[src]
impl Shr<u64> for VAddr[src]
type Output = u64
The resulting type after applying the >> operator.
fn shr(self, rhs: u64) -> <VAddr as Shr<u64>>::Output[src]
impl Shr<usize> for VAddr[src]
type Output = u64
The resulting type after applying the >> operator.
fn shr(self, rhs: usize) -> <VAddr as Shr<usize>>::Output[src]
impl StructuralEq for VAddr[src]
impl StructuralPartialEq for VAddr[src]
impl Sub<VAddr> for VAddr[src]
type Output = VAddr
The resulting type after applying the - operator.
fn sub(self, rhs: VAddr) -> <VAddr as Sub<VAddr>>::Output[src]
impl Sub<u64> for VAddr[src]
type Output = VAddr
The resulting type after applying the - operator.
fn sub(self, rhs: u64) -> <VAddr as Sub<u64>>::Output[src]
impl Sub<usize> for VAddr[src]
type Output = VAddr
The resulting type after applying the - operator.
fn sub(self, rhs: usize) -> <VAddr as Sub<usize>>::Output[src]
impl UpperHex for VAddr[src]
Auto Trait Implementations
impl RefUnwindSafe for VAddr
impl Send for VAddr
impl Sync for VAddr
impl Unpin for VAddr
impl UnwindSafe for VAddr
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,