Trait GCInfoTrait

Source
pub trait GCInfoTrait<T>
where T: TraceTrait + FinalizeTrait<T> + 'static,
{ const REGISTERED_INDEX: AtomicU16; // Required method fn index() -> GCInfoIndex; }
Expand description

Trait determines how the garbage collector treats objects wrt. to traversing, and finalization. It is automatically implemented for all types that implement TraceTrait and FinalizeTrait.

Required Associated Constants§

Required Methods§

Source

fn index() -> GCInfoIndex

Returns index of GCInfo in GCInfoTable.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> GCInfoTrait<T> for T
where T: TraceTrait + FinalizeTrait<T> + 'static,