pub struct GcGuard<'a, T: Scan + ?Sized> { /* private fields */ }Expand description
A guard object that lets you access the underlying data of a Gc.
It exists as data needs protection from being scanned while it’s being concurrently modified.
Trait Implementations§
impl<'a, T: Scan + ?Sized> StableDeref for GcGuard<'a, T>
It is impossible for the value behind a GcGuard to move (since it’s basically a &T)
Auto Trait Implementations§
impl<'a, T> Freeze for GcGuard<'a, T>where
T: ?Sized,
impl<'a, T> !RefUnwindSafe for GcGuard<'a, T>
impl<'a, T> Send for GcGuard<'a, T>
impl<'a, T> Sync for GcGuard<'a, T>
impl<'a, T> Unpin for GcGuard<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for GcGuard<'a, T>
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
Source§impl<T, A> DynAccess<T> for A
impl<T, A> DynAccess<T> for A
Source§fn load(&self) -> DynGuard<T>
fn load(&self) -> DynGuard<T>
The equivalent of
Access::load.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more