Skip to content

Commit d5b2acb

Browse files
committed
Fill in missing implementation
1 parent 028529f commit d5b2acb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/libcollections/btree/node.rs

+3
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,9 @@ impl <K, V> Node<K, V> {
585585
self._len
586586
}
587587

588+
/// Does the node not contain any key-value pairs
589+
pub fn is_empty(&self) -> bool { self.len() == 0 }
590+
588591
/// How many key-value pairs the node can fit
589592
pub fn capacity(&self) -> usize {
590593
self._capacity

0 commit comments

Comments
 (0)