Struct dpdk_unix::memory_information::PhysicalAddress [−][src]
pub struct PhysicalAddress(_);
Physical Address.
Methods
impl PhysicalAddress
[src]
impl PhysicalAddress
pub fn offset_from_start_of_page(self) -> u64
[src]
pub fn offset_from_start_of_page(self) -> u64
Relative offset from the start of the system page containing this physical address.
May be zero, but will always be less than the system page size.
pub fn first_address_in_page(self) -> Self
[src]
pub fn first_address_in_page(self) -> Self
The address of the page which contains this physical address. May be the same value.
Trait Implementations
impl Default for PhysicalAddress
[src]
impl Default for PhysicalAddress
fn default() -> PhysicalAddress
[src]
fn default() -> PhysicalAddress
Returns the "default value" for a type. Read more
impl Debug for PhysicalAddress
[src]
impl Debug for PhysicalAddress
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for PhysicalAddress
[src]
impl Copy for PhysicalAddress
impl Clone for PhysicalAddress
[src]
impl Clone for PhysicalAddress
fn clone(&self) -> PhysicalAddress
[src]
fn clone(&self) -> PhysicalAddress
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Ord for PhysicalAddress
[src]
impl Ord for PhysicalAddress
fn cmp(&self, other: &PhysicalAddress) -> Ordering
[src]
fn cmp(&self, other: &PhysicalAddress) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for PhysicalAddress
[src]
impl PartialOrd for PhysicalAddress
fn partial_cmp(&self, other: &PhysicalAddress) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &PhysicalAddress) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &PhysicalAddress) -> bool
[src]
fn lt(&self, other: &PhysicalAddress) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &PhysicalAddress) -> bool
[src]
fn le(&self, other: &PhysicalAddress) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &PhysicalAddress) -> bool
[src]
fn gt(&self, other: &PhysicalAddress) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &PhysicalAddress) -> bool
[src]
fn ge(&self, other: &PhysicalAddress) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for PhysicalAddress
[src]
impl Eq for PhysicalAddress
impl PartialEq for PhysicalAddress
[src]
impl PartialEq for PhysicalAddress
fn eq(&self, other: &PhysicalAddress) -> bool
[src]
fn eq(&self, other: &PhysicalAddress) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &PhysicalAddress) -> bool
[src]
fn ne(&self, other: &PhysicalAddress) -> bool
This method tests for !=
.
impl Hash for PhysicalAddress
[src]
impl Hash for PhysicalAddress
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Into<u64> for PhysicalAddress
[src]
impl Into<u64> for PhysicalAddress
impl Add<u64> for PhysicalAddress
[src]
impl Add<u64> for PhysicalAddress
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: u64) -> Self::Output
[src]
fn add(self, rhs: u64) -> Self::Output
Performs the +
operation.
impl AddAssign<u64> for PhysicalAddress
[src]
impl AddAssign<u64> for PhysicalAddress
fn add_assign(&mut self, rhs: u64)
[src]
fn add_assign(&mut self, rhs: u64)
Performs the +=
operation.
impl Add<usize> for PhysicalAddress
[src]
impl Add<usize> for PhysicalAddress
type Output = Self
The resulting type after applying the +
operator.
fn add(self, rhs: usize) -> Self::Output
[src]
fn add(self, rhs: usize) -> Self::Output
Performs the +
operation.
impl AddAssign<usize> for PhysicalAddress
[src]
impl AddAssign<usize> for PhysicalAddress
fn add_assign(&mut self, rhs: usize)
[src]
fn add_assign(&mut self, rhs: usize)
Performs the +=
operation.
impl Into<PhysicalAddress> for PhysicalPageFrameNumber
[src]
impl Into<PhysicalAddress> for PhysicalPageFrameNumber
fn into(self) -> PhysicalAddress
[src]
fn into(self) -> PhysicalAddress
Performs the conversion.
Auto Trait Implementations
impl Send for PhysicalAddress
impl Send for PhysicalAddress
impl Sync for PhysicalAddress
impl Sync for PhysicalAddress