Crate global_static_singleton

Source

Attribute Macrosยง

singleton
Generate a ctor static of this struct. By defeault, uses Default if the type implements it. You can pass an expression to the attribute to use it instead.
singleton_fn
Generate a ctor static with this function.