Skip to main content

instance

Function instance 

Source
pub fn instance() -> Option<*mut Loader<'static>>
Expand description

Read the global singleton as a raw pointer — Some(ptr) once set_instance has been called. Callers must unsafe { &mut *ptr } at point of use under the same single-thread CLI-init invariant the Zig var instance: ?*Loader had (mirrors raw *Loader deref in Zig).