[][src]Struct zerogc_context::handle::GcHandle

pub struct GcHandle<T: GcSafe, C: RawHandleImpl> { /* fields omitted */ }

Trait Implementations

impl<T: GcSafe, C: RawHandleImpl> Clone for GcHandle<T, C>[src]

impl<T: GcSafe, C: RawHandleImpl> Drop for GcHandle<T, C>[src]

impl<'new_gc, T, C> GcBindHandle<'new_gc, T> for GcHandle<T, C> where
    T: GcSafe,
    T: GcRebrand<'new_gc, CollectorId<C>>,
    T::Branded: GcSafe,
    C: RawHandleImpl
[src]

impl<T: GcSafe, C: RawHandleImpl> GcHandle<T> for GcHandle<T, C>[src]

type System = CollectorRef<C>

The type of the system used with this handle

type Id = CollectorId<C>

The type of CollectorId used with this sytem

impl<T: GcSafe, C: RawHandleImpl> NullTrace for GcHandle<T, C>[src]

impl<T: GcSafe + Sync, C: RawHandleImpl + Sync> Send for GcHandle<T, C>[src]

In order to send references between threads, the underlying type must be sync.

This is the same reason that Arc<T>: Send requires T: Sync

Requires that the collector is thread-safe.

impl<T: GcSafe + Sync, C: RawHandleImpl + Sync> Sync for GcHandle<T, C>[src]

If the underlying type is Sync, it's safe to share garbage collected references between threads.

Requires that the collector is thread-safe.

impl<T: GcSafe, C: RawHandleImpl> Trace for GcHandle<T, C>[src]

pub const NEEDS_TRACE: bool[src]

See docs on reachability

impl<T: GcSafe, C: RawHandleImpl> TraceImmutable for GcHandle<T, C>[src]

Auto Trait Implementations

impl<T, C> RefUnwindSafe for GcHandle<T, C> where
    T: RefUnwindSafe,
    <<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: RefUnwindSafe
[src]

impl<T, C> Unpin for GcHandle<T, C> where
    <<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Unpin
[src]

impl<T, C> UnwindSafe for GcHandle<T, C> where
    T: RefUnwindSafe,
    <<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: UnwindSafe
[src]

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> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.