pub fn fresh() -> GenId {
        use std::sync::atomic::{AtomicUsize, Ordering};

        lazy_static! {
            static ref NEXT_ID : AtomicUsize = AtomicUsize::new(0);
        }

        // FIXME: check for integer overflow
        GenId(NEXT_ID.fetch_add(1, Ordering::SeqCst) as u32)
    }
/// Generate a new, globally unique id
Generate a new, globally unique id
Generate a new globally unique id
pub fn fresh() -> GenId {
        use std::sync::atomic::{AtomicUsize, Ordering};
        lazy_static! {
            static ref NEXT_ID : AtomicUsize = AtomicUsize::new(0);
        }
        // FIXME: check for integer overflow
        GenId(NEXT_ID.fetch_add(1, Ordering::SeqCst) as u32)
    }
pub fn fresh ( ) -> GenId { use std :: sync :: atomic :: { AtomicUsize , Ordering } ; lazy_static ! { static ref NEXT_ID AtomicUsize AtomicUsize new ( 0 ) } // FIXME: check for integer overflow GenId ( NEXT_ID . fetch_add ( 1 , Ordering :: SeqCst ) as u32 ) }
Generate a new, globally unique id
Generate a new globally unique id