Attribute Macro owned_singleton_macros::Singleton
source · #[Singleton]
Expand description
Attribute to declare an owned singleton
This attribute must be applied to a static [mut]
variable.
The attribute accepts two arguments: Send
and Sync
(e.g. #[Singleton(Send, Sync)]
)
The expansion will produce a proxy struct whose name matches the identifier of the static
variable.
For more information read the crate level documentation of the owned-singleton
crate.