A Rust macro for generating new identifiers (names of variables, functions, traits, etc) by concatenating one or more arbitrary parts and applying other manipulations.
usestd::sync::atomic::AtomicU64;staticmutSEED_SEQ: AtomicU64 =AtomicU64::new(0);/// Generates a unique ID for each invocation.
pubfnnext_unique_id()->u64{#[allow(static_mut_refs)]unsafe{SEED_SEQ.fetch_add(1,std::sync::atomic::Ordering::SeqCst)}}