[−][src]Struct zerogc_context::collector::CollectorId
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]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: RawCollectorImpl> CollectorId for CollectorId<C>
[src]
type System = CollectorRef<C>
The type of the garbage collector system
pub unsafe fn gc_write_barrier<'gc, T: ?Sized, V: ?Sized>(
owner: &Gc<'gc, T, Self>,
value: &Gc<'gc, V, Self>,
field_offset: usize
) where
T: GcSafe + 'gc,
V: GcSafe + 'gc,
[src]
owner: &Gc<'gc, T, Self>,
value: &Gc<'gc, V, Self>,
field_offset: usize
) where
T: GcSafe + 'gc,
V: GcSafe + 'gc,
pub unsafe fn assume_valid_system(&self) -> &Self::System
[src]
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]
pub fn eq(&self, other: &Self) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<C: RawCollectorImpl> Trace for CollectorId<C>
[src]
pub const NEEDS_TRACE: bool
[src]
pub fn visit<V: GcVisitor>(&mut self, _visitor: &mut V) -> Result<(), V::Err>
[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]
<C as RawCollectorImpl>::Ptr: RefUnwindSafe,
impl<C> Send for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: Send,
[src]
<C as RawCollectorImpl>::Ptr: Send,
impl<C> Sync for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: Sync,
[src]
<C as RawCollectorImpl>::Ptr: Sync,
impl<C> Unpin for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: Unpin,
[src]
<C as RawCollectorImpl>::Ptr: Unpin,
impl<C> UnwindSafe for CollectorId<C> where
<C as RawCollectorImpl>::Ptr: UnwindSafe,
[src]
<C as RawCollectorImpl>::Ptr: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,