Fill in missing implementation

This commit is contained in:
Tamir Duberstein 2015-03-24 17:02:18 -07:00
parent 10f15e72e6
commit c55ae1dc30

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