[][src]Struct flp_framework::address::ByteAddr

#[repr(C)]
pub struct ByteAddr(_);

A ByteAddr is a value representing the address of zero or more bytes of memory.

Trait Implementations

impl Address for ByteAddr[src]

fn from_usize(val: usize) -> ByteAddr[src]

Constructor for a byte address from a raw usize.

let ba = ByteAddr::from_usize(0xdeadbeef);

fn as_usize(&self) -> usize[src]

Deconstructor for a byte address into a raw usize value.

let ba = ByteAddr::from_usize(0xdeadbeef);
assert!(ba.as_usize() == 3735928559);

fn verify(self) -> bool[src]

All byte addresses are valid:

let ba = ByteAddr::from_usize(0xdeadbeef);
assert!(ba.verify());

fn load<T: Copy>(&self) -> T[src]

A generic address to a raw byte cannot be accessed.

fn store<T>(&self, value: T)[src]

A generic address to a raw byte cannot be accessed.

impl Clone for ByteAddr[src]

impl Copy for ByteAddr[src]

impl Debug for ByteAddr[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Display this address as a prettified alphanumeric hex string for debugging.

impl Display for ByteAddr[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Display this address as a prettified alphanumeric hex string.

impl Eq for ByteAddr[src]

impl Hash for ByteAddr[src]

impl Ord for ByteAddr[src]

fn cmp(&self, other: &ByteAddr) -> Ordering[src]

Address ordinality delegates to usize ordinality.

impl PartialEq<ByteAddr> for ByteAddr[src]

fn eq(&self, other: &ByteAddr) -> bool[src]

Address equality delegates to usize equality

fn ne(&self, other: &ByteAddr) -> bool[src]

Address inequality delegates to usize equality

impl PartialOrd<ByteAddr> for ByteAddr[src]

fn partial_cmp(&self, other: &ByteAddr) -> Option<Ordering>[src]

Address ordinality delegates to usize ordinality.

impl Pointer for ByteAddr[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Display this address as a prettified alphanumeric hex string.

impl StructuralEq for ByteAddr[src]

impl UpperHex for ByteAddr[src]

fn fmt(&self, f: &mut Formatter) -> Result[src]

Format this address as an alphanumeric hex string.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.