Struct lucia_lang::gc::Gc
source · pub struct Gc<T: Trace + ?Sized> { /* private fields */ }Expand description
A garbage-collected pointer type over an immutable value.
Implementations§
Trait Implementations§
source§impl<T: Trace + Ord> Ord for Gc<T>
impl<T: Trace + Ord> Ord for Gc<T>
source§impl<T: Trace + PartialEq> PartialEq<Gc<T>> for Gc<T>
impl<T: Trace + PartialEq> PartialEq<Gc<T>> for Gc<T>
source§impl<T: Trace + PartialOrd> PartialOrd<Gc<T>> for Gc<T>
impl<T: Trace + PartialOrd> PartialOrd<Gc<T>> for Gc<T>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<T: Trace> Copy for Gc<T>
impl<T: Trace + Eq> Eq for Gc<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Gc<T>
impl<T> !Send for Gc<T>
impl<T> !Sync for Gc<T>
impl<T: ?Sized> Unpin for Gc<T>
impl<T> !UnwindSafe for Gc<T>
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.