impl_singleton_token_factory

Macro impl_singleton_token_factory 

Source
macro_rules! impl_singleton_token_factory {
    ($($ty:ty),* $(,)*) => { ... };
}
Available on target_has_atomic="8" only.
Expand description

Implement SingletonTokenFactory on given types.

The generated implementation uses AtomicBool and therefore might not compile on some targets.

See SingletonToken::new for an example.