Struct mmtk::util::address::ObjectReference[][src]

#[repr(transparent)]pub struct ObjectReference(_);

ObjectReference represents address for an object. Compared with Address, operations allowed on ObjectReference are very limited. No address arithmetics are allowed for ObjectReference. The idea is from the paper High-level Low-level Programming (VEE09) and JikesRVM.

Implementations

impl ObjectReference[src]

pub fn to_address(self) -> Address[src]

converts the ObjectReference to an Address

pub fn is_null(self) -> bool[src]

is this object reference null reference?

pub fn value(self) -> usize[src]

returns the ObjectReference

pub fn is_live(self) -> bool[src]

pub fn is_movable(self) -> bool[src]

pub fn is_mapped(self) -> bool[src]

Trait Implementations

impl Clone for ObjectReference[src]

impl Copy for ObjectReference[src]

impl Debug for ObjectReference[src]

allows Debug format the Address (as upper-case hex value with 0x prefix)

impl Display for ObjectReference[src]

allows Display format the Address (as upper-case hex value with 0x prefix)

impl Eq for ObjectReference[src]

impl Hash for ObjectReference[src]

impl LowerHex for ObjectReference[src]

allows print Address as lower-case hex value

impl PartialEq<ObjectReference> for ObjectReference[src]

impl PartialOrd<ObjectReference> for ObjectReference[src]

impl StructuralEq for ObjectReference[src]

impl StructuralPartialEq for ObjectReference[src]

impl UpperHex for ObjectReference[src]

allows print Address as upper-case hex value

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> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Any + Send + Sync
[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.