()
| 18 | V: Clone + TreeSerialization + TreeDeserialization + Display + Debug, |
| 19 | { |
| 20 | pub fn new() -> Self { |
| 21 | Tree { |
| 22 | root: Box::new(Node::new_leaf()), // Initially the root is a leaf node |
| 23 | b: 4, |
| 24 | } |
| 25 | } |
| 26 | |
| 27 | pub fn insert(&mut self, key: K, value: V) -> Result<(), io::Error> { |
| 28 | let mut root = std::mem::replace(&mut self.root, Box::new(Node::new_leaf())); |
nothing calls this directly
no outgoing calls
no test coverage detected