Macro zng_state_map::static_id
source · 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>;
}