I love control flow
This commit is contained in:
@@ -26,6 +26,9 @@ impl<I: IdNum> IdTracker<I> {
|
||||
}
|
||||
|
||||
impl<I: IdNum> Id<I> {
|
||||
pub(crate) fn raw(id: I) -> Self {
|
||||
Self(id)
|
||||
}
|
||||
pub fn idx(&self) -> usize {
|
||||
self.0.idx()
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ use std::sync::{
|
||||
atomic::{AtomicU32, Ordering},
|
||||
};
|
||||
|
||||
#[derive(Debug)]
|
||||
pub struct RefCounter(Arc<AtomicU32>);
|
||||
|
||||
impl RefCounter {
|
||||
|
||||
Reference in New Issue
Block a user