(&self)
| 47 | } |
| 48 | |
| 49 | pub fn clone(&self) -> Self { |
| 50 | Node { |
| 51 | keys: self.keys.clone(), |
| 52 | values: self.values.clone(), |
| 53 | children: self |
| 54 | .children |
| 55 | .iter() |
| 56 | .map(|c| Box::new((**c).clone())) |
| 57 | .collect(), |
| 58 | max_keys: self.max_keys, |
| 59 | node_type: self.node_type.clone(), |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | pub fn split(&mut self) -> Result<(K, Node<K, V>), io::Error> { |
| 64 | match self.node_type { |
no outgoing calls