@@ -103,7 +103,8 @@ where
103
103
}
104
104
}
105
105
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.
107
108
fn full_range < BorrowType : marker:: BorrowType , K , V > (
108
109
root1 : NodeRef < BorrowType , K , V , marker:: LeafOrInternal > ,
109
110
root2 : NodeRef < BorrowType , K , V , marker:: LeafOrInternal > ,
@@ -130,7 +131,7 @@ fn full_range<BorrowType: marker::BorrowType, K, V>(
130
131
}
131
132
132
133
impl < ' 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 .
134
135
///
135
136
/// The result is meaningful only if the tree is ordered by key, like the tree
136
137
/// in a `BTreeMap` is.
@@ -149,7 +150,7 @@ impl<'a, K: 'a, V: 'a> NodeRef<marker::Immut<'a>, K, V, marker::LeafOrInternal>
149
150
range_search ( self , self , range)
150
151
}
151
152
152
- /// Returns (self.first_leaf_edge(), self.last_leaf_edge()), but more efficiently .
153
+ /// Finds the pair of leaf edges delimiting an entire tree .
153
154
pub fn full_range (
154
155
self ,
155
156
) -> (
0 commit comments