···1515 Self::default()
1616 }
17171818- /// Fork the id generator into a new one that does not share the same
1919- /// internal id. It will increment independantly. Not to be used in the same
2020- /// compilation run.
2121- pub fn fork(&self) -> Self {
2222- let current = self.id.load(Ordering::Relaxed);
2323- let id = AtomicU64::new(current);
2424- Self { id: Arc::new(id) }
2525- }
2626-2718 pub fn next(&self) -> u64 {
2819 self.id.fetch_add(1, Ordering::Relaxed)
2920 }