Skip to content

Commit

Permalink
Fill in missing implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Apr 15, 2015
1 parent 10f15e7 commit c55ae1d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libcollections/btree/node.rs
Expand Up @@ -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
Expand Down

0 comments on commit c55ae1d

Please sign in to comment.