Struct xen::memory::VirtualAddress
source · [−]pub struct VirtualAddress(pub usize);
Expand description
Virtual address
Tuple Fields
0: usize
Implementations
sourceimpl VirtualAddress
impl VirtualAddress
sourcepub fn l1_table_offset(&self) -> isize
pub fn l1_table_offset(&self) -> isize
Given a virtual address get an entry offset into an L1 page table
sourcepub fn l2_table_offset(&self) -> isize
pub fn l2_table_offset(&self) -> isize
Given a virtual address get an entry offset into an L2 page table
sourcepub fn l3_table_offset(&self) -> isize
pub fn l3_table_offset(&self) -> isize
Given a virtual address get an entry offset into an L3 page table
sourcepub fn l4_table_offset(&self) -> isize
pub fn l4_table_offset(&self) -> isize
Given a virtual address get an entry offset into an L4 page table
Trait Implementations
sourceimpl Clone for VirtualAddress
impl Clone for VirtualAddress
sourcefn clone(&self) -> VirtualAddress
fn clone(&self) -> VirtualAddress
Returns a copy of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for VirtualAddress
impl Debug for VirtualAddress
sourceimpl From<MachineAddress> for VirtualAddress
impl From<MachineAddress> for VirtualAddress
sourcefn from(mach: MachineAddress) -> Self
fn from(mach: MachineAddress) -> Self
Converts to this type from the input type.
sourceimpl From<MachineFrameNumber> for VirtualAddress
impl From<MachineFrameNumber> for VirtualAddress
sourcefn from(mfn: MachineFrameNumber) -> Self
fn from(mfn: MachineFrameNumber) -> Self
Converts to this type from the input type.
sourceimpl From<PageEntry> for VirtualAddress
impl From<PageEntry> for VirtualAddress
sourceimpl From<PageFrameNumber> for VirtualAddress
impl From<PageFrameNumber> for VirtualAddress
sourcefn from(pfn: PageFrameNumber) -> Self
fn from(pfn: PageFrameNumber) -> Self
Converts to this type from the input type.
sourceimpl From<PhysicalAddress> for VirtualAddress
impl From<PhysicalAddress> for VirtualAddress
sourcefn from(phys: PhysicalAddress) -> Self
fn from(phys: PhysicalAddress) -> Self
Converts to this type from the input type.
sourceimpl From<VirtualAddress> for PageFrameNumber
impl From<VirtualAddress> for PageFrameNumber
sourcefn from(virt: VirtualAddress) -> Self
fn from(virt: VirtualAddress) -> Self
Converts to this type from the input type.
sourceimpl From<VirtualAddress> for MachineFrameNumber
impl From<VirtualAddress> for MachineFrameNumber
sourcefn from(virt: VirtualAddress) -> Self
fn from(virt: VirtualAddress) -> Self
Converts to this type from the input type.
sourceimpl From<VirtualAddress> for PhysicalAddress
impl From<VirtualAddress> for PhysicalAddress
sourcefn from(virt: VirtualAddress) -> Self
fn from(virt: VirtualAddress) -> Self
Converts to this type from the input type.
sourceimpl From<VirtualAddress> for MachineAddress
impl From<VirtualAddress> for MachineAddress
sourcefn from(virt: VirtualAddress) -> Self
fn from(virt: VirtualAddress) -> Self
Converts to this type from the input type.
sourceimpl Ord for VirtualAddress
impl Ord for VirtualAddress
sourcefn cmp(&self, other: &VirtualAddress) -> Ordering
fn cmp(&self, other: &VirtualAddress) -> Ordering
This method returns an [Ordering
] between self
and other
. Read more
sourceimpl PartialEq<VirtualAddress> for VirtualAddress
impl PartialEq<VirtualAddress> for VirtualAddress
sourcefn eq(&self, other: &VirtualAddress) -> bool
fn eq(&self, other: &VirtualAddress) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &VirtualAddress) -> bool
fn ne(&self, other: &VirtualAddress) -> bool
This method tests for !=
.
sourceimpl PartialOrd<VirtualAddress> for VirtualAddress
impl PartialOrd<VirtualAddress> for VirtualAddress
sourcefn partial_cmp(&self, other: &VirtualAddress) -> Option<Ordering>
fn partial_cmp(&self, other: &VirtualAddress) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0fn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for VirtualAddress
impl Eq for VirtualAddress
impl StructuralEq for VirtualAddress
impl StructuralPartialEq for VirtualAddress
Auto Trait Implementations
impl RefUnwindSafe for VirtualAddress
impl Send for VirtualAddress
impl Sync for VirtualAddress
impl Unpin for VirtualAddress
impl UnwindSafe for VirtualAddress
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstablefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
fn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more