pub trait GcNode: GcTrace {
const GC_TYPE_ID: u8;
// Required method
fn gc_ref(&self) -> GcRef<Self>
where Self: Sized;
// Provided methods
fn gc_head_ptr(&self) -> NonNull<GcHead>
where Self: Sized { ... }
fn gc_head(&self) -> &GcHead
where Self: Sized { ... }
fn gc_head_mut(&mut self) -> &mut GcHead
where Self: Sized { ... }
}Required Associated Constants§
Sourceconst GC_TYPE_ID: u8
const GC_TYPE_ID: u8
Node data type id
Required Methods§
Provided Methods§
Sourcefn gc_head_ptr(&self) -> NonNull<GcHead>where
Self: Sized,
fn gc_head_ptr(&self) -> NonNull<GcHead>where
Self: Sized,
get gc node head pointer
Sourcefn gc_head_mut(&mut self) -> &mut GcHeadwhere
Self: Sized,
fn gc_head_mut(&mut self) -> &mut GcHeadwhere
Self: Sized,
get gc node head info
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".