[][src]Struct zerogc_context::collector::CollectorId

#[repr(C)]pub struct CollectorId<C: RawCollectorImpl> { /* fields omitted */ }

Uniquely identifies the collector in case there are multiple collectors.

If there are multiple collectors cfg!(feature="multiple-collectors"), we need to use a pointer to tell them apart. Otherwise, this is a zero-sized structure.

As long as our memory is valid, it implies this pointer is too.

Implementations

impl<C: RawCollectorImpl> CollectorId<C>[src]

pub const unsafe fn from_raw(ptr: C::Ptr) -> CollectorId<C>[src]

pub unsafe fn as_ref(&self) -> &C[src]

pub unsafe fn weak_ref(&self) -> WeakCollectorRef<C>[src]

Trait Implementations

impl<C: RawCollectorImpl> Clone for CollectorId<C>[src]

impl<C: RawCollectorImpl> CollectorId for CollectorId<C>[src]

type System = CollectorRef<C>

The type of the garbage collector system

impl<C: RawCollectorImpl> Copy for CollectorId<C>[src]

impl<C: RawCollectorImpl> Debug for CollectorId<C>[src]

impl<C: RawCollectorImpl> Eq for CollectorId<C>[src]

impl<C: RawCollectorImpl> NullTrace for CollectorId<C>[src]

impl<C: RawCollectorImpl> PartialEq<CollectorId<C>> for CollectorId<C>[src]

impl<C: RawCollectorImpl> Trace for CollectorId<C>[src]

impl<C: RawCollectorImpl> TraceImmutable for CollectorId<C>[src]

Auto Trait Implementations

impl<C> RefUnwindSafe for CollectorId<C> where
    <C as RawCollectorImpl>::Ptr: RefUnwindSafe
[src]

impl<C> Send for CollectorId<C> where
    <C as RawCollectorImpl>::Ptr: Send
[src]

impl<C> Sync for CollectorId<C> where
    <C as RawCollectorImpl>::Ptr: Sync
[src]

impl<C> Unpin for CollectorId<C> where
    <C as RawCollectorImpl>::Ptr: Unpin
[src]

impl<C> UnwindSafe for CollectorId<C> where
    <C as RawCollectorImpl>::Ptr: 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.