Create a cursor for navigating this set. The cursor is initially positioned off the end of the set.
(
&'a mut self,
forest: &'a mut SetForest<K>,
comp: &'a C,
)
| 171 | /// Create a cursor for navigating this set. The cursor is initially positioned off the end of |
| 172 | /// the set. |
| 173 | pub fn cursor<'a, C: Comparator<K>>( |
| 174 | &'a mut self, |
| 175 | forest: &'a mut SetForest<K>, |
| 176 | comp: &'a C, |
| 177 | ) -> SetCursor<'a, K, C> { |
| 178 | SetCursor::new(self, forest, comp) |
| 179 | } |
| 180 | |
| 181 | /// Create an iterator traversing this set. The iterator type is `K`. |
| 182 | pub fn iter<'a>(&'a self, forest: &'a SetForest<K>) -> SetIter<'a, K> { |