Skip to main content

GcNode

Trait GcNode 

Source
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§

Source

const GC_TYPE_ID: u8

Node data type id

Required Methods§

Source

fn gc_ref(&self) -> GcRef<Self>
where Self: Sized,

get gc ref

Provided Methods§

Source

fn gc_head_ptr(&self) -> NonNull<GcHead>
where Self: Sized,

get gc node head pointer

Source

fn gc_head(&self) -> &GcHead
where Self: Sized,

get gc node head info

Source

fn gc_head_mut(&mut self) -> &mut GcHead
where 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".

Implementors§