Fill in missing implementation

This commit is contained in:
Tamir Duberstein 2015-03-24 17:02:18 -07:00
parent 10f15e72e6
commit c55ae1dc30
1 changed files with 3 additions and 0 deletions

View File

@ -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