Skip to main content

get_handler_registry

Function get_handler_registry 

Source
pub fn get_handler_registry() -> &'static mut HashMap<(usize, String), Rc<RefCell<Option<NativeEventHandler>>>>
Expand description

Returns a mutable reference to the global handler registry.

Lazily initializes the registry on first access via Box::leak. The allocated memory lives for the remainder of the program.

§Returns

  • &'static mut HashMap<(usize, String), HandlerEntry>: A mutable reference to the global handler registry.

§Panics

Panics if the registry pointer is invalid after lazy initialization.