[−][src]Struct zerogc_context::handle::GcHandle
Trait Implementations
impl<T: GcSafe, C: RawHandleImpl> Clone for GcHandle<T, C>
[src]
pub fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
T: GcSafe,
T: GcRebrand<'new_gc, CollectorId<C>>,
T::Branded: GcSafe,
C: RawHandleImpl,
pub fn bind_to(
&self,
context: &'new_gc CollectorContext<C>
) -> Gc<'new_gc, T::Branded, CollectorId<C>>
[src]
&self,
context: &'new_gc CollectorContext<C>
) -> Gc<'new_gc, T::Branded, CollectorId<C>>
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
pub fn use_critical<R>(&self, func: impl FnOnce(&T) -> R) -> R
[src]
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
pub fn visit<V>(&mut self, _visitor: &mut V) -> Result<(), V::Err> where
V: GcVisitor,
[src]
V: GcVisitor,
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]
T: RefUnwindSafe,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: RefUnwindSafe,
impl<T, C> Unpin for GcHandle<T, C> where
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Unpin,
[src]
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: Unpin,
impl<T, C> UnwindSafe for GcHandle<T, C> where
T: RefUnwindSafe,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: UnwindSafe,
[src]
T: RefUnwindSafe,
<<C as RawCollectorImpl>::Ptr as CollectorPtr<C>>::Weak: 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>,