pub struct Gc<T> { /* private fields */ }Expand description
Copy handle to a heap-allocated GC-managed object. Layout is a single
NonNull<T>; the GC walks reachability via root scanning and intrusive
linkage on GcHeader, not via reference counts.
Implementations§
Trait Implementations§
impl<T> Copy for Gc<T>
Source§impl IntoValue for Gc<LuaClosure>
impl IntoValue for Gc<LuaClosure>
Auto Trait Implementations§
impl<T> !Send for Gc<T>
impl<T> !Sync for Gc<T>
impl<T> Freeze for Gc<T>
impl<T> RefUnwindSafe for Gc<T>where
T: RefUnwindSafe,
impl<T> Unpin for Gc<T>
impl<T> UnsafeUnpin for Gc<T>
impl<T> UnwindSafe for Gc<T>where
T: RefUnwindSafe,
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