Skip to content

Commit 8451a17

Browse files
committed
Fill in missing implementation
1 parent 0a2ce4b commit 8451a17

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
@@ -583,6 +583,9 @@ impl <K, V> Node<K, V> {
583583
self._len
584584
}
585585

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

0 commit comments

Comments
 (0)