From c55ae1dc3094912c935fb95cf915841af0259305 Mon Sep 17 00:00:00 2001 From: Tamir Duberstein Date: Tue, 24 Mar 2015 17:02:18 -0700 Subject: [PATCH] Fill in missing implementation --- src/libcollections/btree/node.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/libcollections/btree/node.rs b/src/libcollections/btree/node.rs index 581cfa3f09bf4..a480335c94693 100644 --- a/src/libcollections/btree/node.rs +++ b/src/libcollections/btree/node.rs @@ -585,6 +585,9 @@ impl Node { 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