Struct mmtk::util::address::ObjectReference [−][src]
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]
fn clone(&self) -> ObjectReference
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl LowerHex for ObjectReference
[src]
allows print Address as lower-case hex value
impl PartialEq<ObjectReference> for ObjectReference
[src]
fn eq(&self, other: &ObjectReference) -> bool
[src]
fn ne(&self, other: &ObjectReference) -> bool
[src]
impl PartialOrd<ObjectReference> for ObjectReference
[src]
fn partial_cmp(&self, other: &ObjectReference) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[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
impl RefUnwindSafe for ObjectReference
impl Send for ObjectReference
impl Sync for ObjectReference
impl Unpin for ObjectReference
impl UnwindSafe for ObjectReference
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Downcast for T where
T: Any,
[src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,