[−][src]Struct moving_gc_arena::MutEntry
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
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]
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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>,