Macro arret_compiler::new_global_id_type [−][src]
macro_rules! new_global_id_type { ($id_name:ident) => { ... }; ($id_name:ident, $native_type:ty, $atomic_type:ty, $non_zero_type:ty) => { ... }; }
Builds a new ID type using a global counter
This allows allocating IDs without threading a mutable counter through multiple layers of code.