singleton

Attribute Macro singleton 

Source
#[singleton]
Expand description

Annotates a struct as a Dantelion2 singleton to be looked up using a single string argument.

This is only guaranteed to make the struct work with the fromsoftware_shared::singleton::get_instance function. Any other added functionality is considered an implementation detail and shouldn’t be relied upon.