[][src]Struct memory_manager::object::Object

pub struct Object<'a> {
    pub descriptor: &'a mut &'a ObjectDescriptor,
    pub unpacked: &'a mut [usize],
    pub pointers: &'a mut [&'a Object<'a>],
}

An object, with a lifetime attached.

Fields

descriptor: &'a mut &'a ObjectDescriptor

The pointer to ObjectDescriptor.

unpacked: &'a mut [usize]

The unpacked fields.

pointers: &'a mut [&'a Object<'a>]

The boxed fields (i.e. pointers).

Implementations

impl<'a> Object<'a>[src]

pub fn total_size(&self) -> usize[src]

The total size for this object. See also ObjectDescriptor::total_size.

pub fn start_address(&mut self) -> Address<'a>[src]

The starting address of this object, i.e. where the pointer to ObjectDescriptor is stored.

Trait Implementations

impl<'a> From<Address<'a>> for Object<'a>[src]

Auto Trait Implementations

impl<'a> Send for Object<'a>

impl<'a> Sync for Object<'a>

impl<'a> Unpin for Object<'a>

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, 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.