Struct zerogc_context::collector::WeakCollectorRef [−][src]
pub struct WeakCollectorRef<C: RawCollectorImpl> { /* fields omitted */ }
Implementations
impl<C: RawCollectorImpl> WeakCollectorRef<C>
[src]
impl<C: RawCollectorImpl> WeakCollectorRef<C>
[src]pub unsafe fn assume_valid(&self) -> CollectorId<C>
[src]
pub fn ensure_valid<R>(&self, func: impl FnOnce(CollectorId<C>) -> R) -> R
[src]
pub fn try_ensure_valid<R>(
&self,
func: impl FnOnce(Option<CollectorId<C>>) -> R
) -> R
[src]
&self,
func: impl FnOnce(Option<CollectorId<C>>) -> R
) -> R
Auto Trait Implementations
impl<C> RefUnwindSafe for WeakCollectorRef<C> where
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: RefUnwindSafe,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: RefUnwindSafe,
impl<C> Send for WeakCollectorRef<C> where
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Send,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Send,
impl<C> Sync for WeakCollectorRef<C> where
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Sync,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Sync,
impl<C> Unpin for WeakCollectorRef<C> where
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Unpin,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Unpin,
impl<C> UnwindSafe for WeakCollectorRef<C> where
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: UnwindSafe,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: 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> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,