diff --git a/src/map.rs b/src/map.rs index 65253e7..0b08ddc 100644 --- a/src/map.rs +++ b/src/map.rs @@ -11,7 +11,7 @@ pub struct BPlusTreeMap = ()> { inner: BPlusTree>, } -impl Default for BPlusTreeMap { +impl> Default for BPlusTreeMap { fn default() -> Self { Self::new() } @@ -149,7 +149,10 @@ impl> BPlusTreeMap { /// assert_eq!(kvs, vec![(1, 2), (2, 3)]); /// ``` #[inline] - pub fn iter(&self) -> impl Iterator { + pub fn iter( + &self, + ) -> impl DoubleEndedIterator + ExactSizeIterator + std::iter::FusedIterator + { iter::Iter { inner: self.inner.iter(), } diff --git a/src/tree/node_stores/vec_backed.rs b/src/tree/node_stores/vec_backed.rs index d5d9ef2..fb1b6db 100644 --- a/src/tree/node_stores/vec_backed.rs +++ b/src/tree/node_stores/vec_backed.rs @@ -8,7 +8,7 @@ pub struct NodeStoreVec = ()> { cached_leaf: std::sync::atomic::AtomicUsize, } -impl Clone for NodeStoreVec { +impl> Clone for NodeStoreVec { fn clone(&self) -> Self { Self { inner_nodes: self.inner_nodes.clone(),