Trait memflow::types::address::PrimitiveAddress
source · pub trait PrimitiveAddress: Copy + Eq + PartialEq + Ord + PartialOrd + Hash + LowerHex + UpperHex + ByteSwap + Add<Output = Self> + Sub<Output = Self> {
Show 13 methods
// Required methods
fn null() -> Self;
fn invalid() -> Self;
fn min() -> Self;
fn max() -> Self;
fn from_umem(frm: umem) -> Self;
fn from_imem(frm: imem) -> Self;
fn wrapping_add(self, rhs: Self) -> Self;
fn wrapping_sub(self, rhs: Self) -> Self;
fn saturating_sub(self, rhs: Self) -> Self;
fn overflowing_shr(self, rhs: u32) -> (Self, bool);
fn to_umem(self) -> umem;
fn to_imem(self) -> imem;
// Provided method
fn is_null(self) -> bool { ... }
}
Expand description
PrimitiveAddress
describes the address of a target system.
The current implementations include u32
, u64
and later eventually u128
.
This trait can be used to abstract objects over the target pointer width.
Required Methods§
fn null() -> Self
fn invalid() -> Self
fn min() -> Self
fn max() -> Self
fn from_umem(frm: umem) -> Self
fn from_imem(frm: imem) -> Self
fn wrapping_add(self, rhs: Self) -> Self
fn wrapping_sub(self, rhs: Self) -> Self
fn saturating_sub(self, rhs: Self) -> Self
fn overflowing_shr(self, rhs: u32) -> (Self, bool)
fn to_umem(self) -> umem
fn to_imem(self) -> imem
Provided Methods§
Object Safety§
This trait is not object safe.