Struct zerogc_context::collector::CollectorId [−][src]
#[repr(C)]pub struct CollectorId<C: RawCollectorImpl> { /* fields omitted */ }
Expand description
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]
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> Clone for CollectorId<C>
[src]impl<C: RawCollectorImpl> CollectorId for CollectorId<C>
[src]
impl<C: RawCollectorImpl> CollectorId for CollectorId<C>
[src]type System = CollectorRef<C>
type System = CollectorRef<C>
The type of the garbage collector system
unsafe fn assume_valid_system(&self) -> &Self::System
[src]
unsafe fn assume_valid_system(&self) -> &Self::System
[src]impl<C: RawCollectorImpl> Debug for CollectorId<C>
[src]
impl<C: RawCollectorImpl> Debug for CollectorId<C>
[src]impl<C: RawCollectorImpl> PartialEq<CollectorId<C>> 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> Trace for CollectorId<C>
[src]impl<C: RawCollectorImpl> TraceImmutable for CollectorId<C>
[src]
impl<C: RawCollectorImpl> TraceImmutable for CollectorId<C>
[src]impl<C: RawCollectorImpl> Copy for CollectorId<C>
[src]
impl<C: RawCollectorImpl> Eq for CollectorId<C>
[src]
impl<C: RawCollectorImpl> NullTrace for CollectorId<C>
[src]
Auto Trait Implementations
impl<C> RefUnwindSafe for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: RefUnwindSafe,
<C as RawCollectorImpl>::Ptr: RefUnwindSafe,
impl<C> Send for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: Send,
<C as RawCollectorImpl>::Ptr: Send,
impl<C> Sync for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: Sync,
<C as RawCollectorImpl>::Ptr: Sync,
impl<C> Unpin for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: Unpin,
<C as RawCollectorImpl>::Ptr: Unpin,
impl<C> UnwindSafe for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: UnwindSafe,
<C as RawCollectorImpl>::Ptr: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,