[][src]Struct moving_gc_arena::MutEntry

pub struct MutEntry<'a, T> { /* fields omitted */ }

A freshly created entry, allowing root/weak creation, and mutation

This entry is created by calls to Region::alloc and will allow the creation of external and internal indices, as well as allowing access to the freshly-created object.

Methods

impl<'a, T> MutEntry<'a, T>[src]

pub fn root(&self) -> Root<T>[src]

Create a root pointer, which will keep this object live across garbage collections.

pub fn weak(&self) -> Weak<T>[src]

Create a weak pointer, which can be used to access a consistent location in the region, but does not act as a root for garbage collection

pub fn ix(&self) -> Ix<T>[src]

pub fn as_ref(&self) -> &T[src]

Deprecated since 0.2.0:

Please use MutEntry::get

pub fn as_mut_ref(&mut self) -> &mut T[src]

Deprecated since 0.2.0:

Please use MutEntry::get_mut

pub fn get(&self) -> &T[src]

pub fn get_mut(&mut self) -> &mut T[src]

Trait Implementations

impl<'a, T: Debug> Debug for MutEntry<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !Send for MutEntry<'a, T>

impl<'a, T> !Sync for MutEntry<'a, T>

impl<'a, T> Unpin for MutEntry<'a, T>

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.