vm_memory::address

Trait AddressValue

Source
pub trait AddressValue {
    type V: Copy + PartialEq + Eq + PartialOrd + Ord + Not<Output = Self::V> + Add<Output = Self::V> + Sub<Output = Self::V> + BitAnd<Output = Self::V> + BitOr<Output = Self::V> + Debug + From<u8>;

    // Provided methods
    fn zero() -> Self::V { ... }
    fn one() -> Self::V { ... }
}
Expand description

Simple helper trait used to store a raw address value.

Required Associated Types§

Source

type V: Copy + PartialEq + Eq + PartialOrd + Ord + Not<Output = Self::V> + Add<Output = Self::V> + Sub<Output = Self::V> + BitAnd<Output = Self::V> + BitOr<Output = Self::V> + Debug + From<u8>

Type of the raw address value.

Provided Methods§

Source

fn zero() -> Self::V

Return the value zero, coerced into the value type Self::V

Source

fn one() -> Self::V

Return the value zero, coerced into the value type Self::V

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§