#[repr(C)]pub struct AddrAddr(/* private fields */);Expand description
A generic address that points to a memory location containing an address.
Trait Implementations§
Source§impl Address for AddrAddr
impl Address for AddrAddr
Source§fn from_usize(val: usize) -> AddrAddr
fn from_usize(val: usize) -> AddrAddr
Construct an address of this type from a raw usize value.
Source§fn offset<T, A: Address>(&self, offset: usize) -> A
fn offset<T, A: Address>(&self, offset: usize) -> A
Offset this
&self address some number of instances of type T, producing an address of
type A. Read moreSource§fn load<T: Copy>(&self) -> T
fn load<T: Copy>(&self) -> T
Read a single instance of a value of type
T from this address. Read moreSource§fn store<T>(&self, value: T)
fn store<T>(&self, value: T)
Store a single instance
value into the memory at this address. Read moreSource§fn is_zero(&self) -> bool
fn is_zero(&self) -> bool
Is the value of this address equivalent to the (universal) null value? Read more
Source§fn align_up<A: Address>(&self, align: usize) -> A
fn align_up<A: Address>(&self, align: usize) -> A
Align this pointer up (increasing value) to the nearest address with a value
aligned to
align bytes. For example the following properties hold: Read moreSource§fn gte<A: Address>(&self, addr: A) -> bool
fn gte<A: Address>(&self, addr: A) -> bool
Is the value of this address greater than or equal to the value of the given address? Read more
Source§fn greater<A: Address>(&self, addr: A) -> bool
fn greater<A: Address>(&self, addr: A) -> bool
Is the value of this address greater than the value of the given address? Read more
Source§fn lte<A: Address>(&self, addr: A) -> bool
fn lte<A: Address>(&self, addr: A) -> bool
Is the value of this address less than or equal to the value of the given address? Read more
Source§fn less<A: Address>(&self, addr: A) -> bool
fn less<A: Address>(&self, addr: A) -> bool
Is the value of this address less than the value of the given address? Read more
Source§fn is_aligned_to(&self, align: usize) -> bool
fn is_aligned_to(&self, align: usize) -> bool
Is the value of this address exactly aligned to the given alignment? Read more
Source§fn from_ptr<T>(ptr: *const T) -> Self
fn from_ptr<T>(ptr: *const T) -> Self
Construct an address from an immutable constant Rust pointer type. Read more
Source§fn to_ptr<T>(&self) -> *const T
fn to_ptr<T>(&self) -> *const T
Deconstruct an address into an immutable constant Rust pointer type. Read more
Source§fn to_ptr_mut<T>(&self) -> *mut T
fn to_ptr_mut<T>(&self) -> *mut T
Construct an address from a mutable constant Rust pointer type. Read more
Source§impl Ord for AddrAddr
impl Ord for AddrAddr
Source§impl PartialOrd for AddrAddr
impl PartialOrd for AddrAddr
impl Copy for AddrAddr
impl Eq for AddrAddr
Auto Trait Implementations§
impl Freeze for AddrAddr
impl RefUnwindSafe for AddrAddr
impl Send for AddrAddr
impl Sync for AddrAddr
impl Unpin for AddrAddr
impl UnwindSafe for AddrAddr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more