[][src]Trait zerogc_context::collector::SingletonCollector

pub unsafe trait SingletonCollector: RawCollectorImpl<Ptr = PhantomData<&'static Self>> {
    pub fn global_ptr() -> *const Self;
pub fn init_global(logger: Logger); }

A collector implemented as a singleton

This only has one instance

Required methods

pub fn global_ptr() -> *const Self[src]

When the collector is a singleton, return the global implementation

pub fn init_global(logger: Logger)[src]

Initialize the global singleton

Panics if already initialized

Loading content...

Implementors

Loading content...