Fill in missing implementation
This commit is contained in:
parent
10f15e72e6
commit
c55ae1dc30
1 changed files with 3 additions and 0 deletions
|
@ -585,6 +585,9 @@ impl <K, V> Node<K, V> {
|
|||
self._len
|
||||
}
|
||||
|
||||
/// Does the node not contain any key-value pairs
|
||||
pub fn is_empty(&self) -> bool { self.len() == 0 }
|
||||
|
||||
/// How many key-value pairs the node can fit
|
||||
pub fn capacity(&self) -> usize {
|
||||
self._capacity
|
||||
|
|
Loading…
Add table
Reference in a new issue