pub struct Gc<T: ?Sized + GcObject> { /* private fields */ }
Expand description
A garbage-collected pointer type
Implementations§
Trait Implementations§
Source§impl<T: PartialOrd + Ord + GcObject> Ord for Gc<T>
impl<T: PartialOrd + Ord + GcObject> Ord for Gc<T>
Source§impl<T: PartialOrd + GcObject> PartialOrd for Gc<T>
impl<T: PartialOrd + GcObject> PartialOrd for Gc<T>
impl<T: GcObject + ?Sized + Unsize<U>, U: GcObject + ?Sized> CoerceUnsized<Gc<U>> for Gc<T>
impl<T: ?Sized + GcObject> Copy for Gc<T>
impl<T: Eq + PartialEq + GcObject> Eq for Gc<T>
impl<T: ?Sized + GcObject> Send for Gc<T>
impl<T: ?Sized + GcObject + Sync> Sync for Gc<T>
Auto Trait Implementations§
impl<T> Freeze for Gc<T>where
T: ?Sized,
impl<T> RefUnwindSafe for Gc<T>where
T: RefUnwindSafe + ?Sized,
impl<T> Unpin for Gc<T>where
T: ?Sized,
impl<T> UnwindSafe for Gc<T>where
T: RefUnwindSafe + ?Sized,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more