pub enum ManagedGcLifetime<'a> {
Owned(&'a Lifetime),
Referenced(&'a LifetimeLazy),
}Expand description
Borrow state of a garbage collected box, as seen from a handle.
Which variant comes back tells whether the handle owns the value.
Variants§
Owned(&'a Lifetime)
This handle owns the value.
Referenced(&'a LifetimeLazy)
This handle only references the value.
Auto Trait Implementations§
impl<'a> Freeze for ManagedGcLifetime<'a>
impl<'a> RefUnwindSafe for ManagedGcLifetime<'a>
impl<'a> Send for ManagedGcLifetime<'a>
impl<'a> Sync for ManagedGcLifetime<'a>
impl<'a> Unpin for ManagedGcLifetime<'a>
impl<'a> UnsafeUnpin for ManagedGcLifetime<'a>
impl<'a> UnwindSafe for ManagedGcLifetime<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more