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

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

A collector implemented as a singleton

This only has one instance

Required methods

When the collector is a singleton, return the global implementation

Initialize the global singleton

Panics if already initialized

Implementors