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§
const REGISTERED_INDEX: AtomicU16
Required Methods§
Sourcefn index() -> GCInfoIndex
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.