Introduce a new TreeSet struct in sum_tree

This is just a special case of `TreeMap<K, V>` where `V = ()`.
This commit is contained in:
Antonio Scandurra 2022-07-18 13:40:30 +02:00
parent f9a5ed3a85
commit df33556693
2 changed files with 32 additions and 1 deletions

View file

@ -5,7 +5,7 @@ use arrayvec::ArrayVec;
pub use cursor::{Cursor, FilterCursor, Iter};
use std::marker::PhantomData;
use std::{cmp::Ordering, fmt, iter::FromIterator, sync::Arc};
pub use tree_map::TreeMap;
pub use tree_map::{TreeMap, TreeSet};
#[cfg(test)]
const TREE_BASE: usize = 2;