[][src]Struct gcmodule::ThreadedCcRef

pub struct ThreadedCcRef<'a, T: ?Sized> { /* fields omitted */ }

Wraps a borrowed reference to ThreadedCc.

The wrapper automatically takes a lock that prevents the collector from running. This ensures that when the collector is running, there are no borrowed references of ThreadedCc. Therefore ThreadedCcs can be seen as temporarily immutable, even if they might have interior mutability. The collector relies on this for correctness.

Trait Implementations

impl<'a, T: ?Sized> Deref for ThreadedCcRef<'a, T>[src]

type Target = T

The resulting type after dereferencing.

Auto Trait Implementations

impl<'a, T> !RefUnwindSafe for ThreadedCcRef<'a, T>

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

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

impl<'a, T: ?Sized> Unpin for ThreadedCcRef<'a, T>

impl<'a, T> !UnwindSafe for ThreadedCcRef<'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.