@@ -103,7 +103,8 @@ where
103103 }
104104}
105105
106- /// Equivalent to `range_search(k, v, ..)` but without the `Ord` bound.
106+ /// Equivalent to `range_search(root1, root2, ..)` but without the `Ord` bound.
107+ /// Equivalent to `(root1.first_leaf_edge(), root2.last_leaf_edge())` but more efficient.
107108fn full_range < BorrowType : marker:: BorrowType , K , V > (
108109 root1 : NodeRef < BorrowType , K , V , marker:: LeafOrInternal > ,
109110 root2 : NodeRef < BorrowType , K , V , marker:: LeafOrInternal > ,
@@ -130,7 +131,7 @@ fn full_range<BorrowType: marker::BorrowType, K, V>(
130131}
131132
132133impl < ' a , K : ' a , V : ' a > NodeRef < marker:: Immut < ' a > , K , V , marker:: LeafOrInternal > {
133- /// Creates a pair of leaf edges delimiting a specified range in or underneath a node .
134+ /// Finds the pair of leaf edges delimiting a specific range in a tree .
134135 ///
135136 /// The result is meaningful only if the tree is ordered by key, like the tree
136137 /// in a `BTreeMap` is.
@@ -149,7 +150,7 @@ impl<'a, K: 'a, V: 'a> NodeRef<marker::Immut<'a>, K, V, marker::LeafOrInternal>
149150 range_search ( self , self , range)
150151 }
151152
152- /// Returns (self.first_leaf_edge(), self.last_leaf_edge()), but more efficiently .
153+ /// Finds the pair of leaf edges delimiting an entire tree .
153154 pub fn full_range (
154155 self ,
155156 ) -> (
0 commit comments