We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92c8357 commit d9f3c69Copy full SHA for d9f3c69
src/id_allocator.rs
@@ -17,7 +17,7 @@ use std::collections::BTreeSet;
17
// BTreeSet is that the average complexity for deletion and insertion is
18
// O(logN) compared to Vec for example, another benefit is that the entries
19
// are sorted so we will always use the first available ID.
20
-#[derive(Debug)]
+#[derive(Debug, Clone)]
21
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
22
pub struct IdAllocator {
23
// Beginning of the range of IDs that we want to manage.
0 commit comments