Trait zerogc_context::collector::SingletonCollector [−][src]
pub unsafe trait SingletonCollector: RawCollectorImpl<Ptr = PhantomData<&'static Self>> { fn global_ptr() -> *const Self; fn init_global(logger: Logger); }
Expand description
A collector implemented as a singleton
This only has one instance
Required methods
fn global_ptr() -> *const Self
[src]
Expand description
When the collector is a singleton, return the global implementation
fn init_global(logger: Logger)
[src]
Expand description
Initialize the global singleton
Panics if already initialized