macro_rules! static_id { ($( $(#[$attr:meta])* $vis:vis static ref $IDENT:ident: $IdTy:ty; )+) => { ... }; }
Expand description
Declares a static unique ID that is lazy inited.
Dereferencing this static generates the ID and caches it.
ยงExamples
static_id! {
/// Metadata foo ID.
pub static ref FOO_ID: StateId<bool>;
}