Struct abyss::addressing::Va  
source · #[repr(transparent)]pub struct Va(_);Expand description
Virtual address
Implementations§
source§impl Va
 
impl Va
sourcepub const unsafe fn into_usize(self) -> usize
 
pub const unsafe fn into_usize(self) -> usize
Cast into usize.
sourcepub unsafe fn as_ref<'a, T>(&self) -> Option<&'a T>
 
pub unsafe fn as_ref<'a, T>(&self) -> Option<&'a T>
Get reference of T underlying the Va.
Safety
When calling this method, you have to ensure that either the pointer is null or all of the following is true:
- 
The pointer must be properly aligned.
 - 
It must be “dereferenceable” in the sense defined in the module documentation.
 - 
The pointer must point to an initialized instance of
T. 
This applies even if the result of this method is unused!
sourcepub unsafe fn as_mut<'a, T>(&self) -> Option<&'a mut T>
 
pub unsafe fn as_mut<'a, T>(&self) -> Option<&'a mut T>
Get mutable reference of T underlying the Va.
Safety
When calling this method, you have to ensure that either the pointer is null or all of the following is true:
- 
The pointer must be properly aligned.
 - 
It must be “dereferenceable” in the sense defined in the module documentation.
 - 
The pointer must point to an initialized instance of
T. 
This applies even if the result of this method is unused!
Trait Implementations§
source§impl AddAssign<usize> for Va
 
impl AddAssign<usize> for Va
source§fn add_assign(&mut self, other: usize)
 
fn add_assign(&mut self, other: usize)
+= operation. Read moresource§impl BitAndAssign<usize> for Va
 
impl BitAndAssign<usize> for Va
source§fn bitand_assign(&mut self, other: usize)
 
fn bitand_assign(&mut self, other: usize)
&= operation. Read moresource§impl BitOrAssign<usize> for Va
 
impl BitOrAssign<usize> for Va
source§fn bitor_assign(&mut self, other: usize)
 
fn bitor_assign(&mut self, other: usize)
|= operation. Read moresource§impl Ord for Va
 
impl Ord for Va
source§impl PartialOrd<Va> for Va
 
impl PartialOrd<Va> for Va
source§impl SubAssign<usize> for Va
 
impl SubAssign<usize> for Va
source§fn sub_assign(&mut self, other: usize)
 
fn sub_assign(&mut self, other: usize)
-= operation. Read more