Lines Matching refs:cursor

205     pub fn cursor<'a, C: Comparator<K>>(  in cursor()  function
254 cursor: self.cursor(forest, comp), in range()
705 cursor: MapCursor<'a, K, V, C>, field
733 self.cursor.next() in next()
737 self.cursor.goto(k); in next()
738 Some((self.cursor.key()?, self.cursor.value()?)) in next()
741 self.cursor.goto(k); in next()
743 .cursor in next()
745 .is_some_and(|key| self.cursor.comp.cmp(k, key).is_eq()) in next()
747 self.cursor.next() in next()
749 Some((self.cursor.key()?, self.cursor.value()?)) in next()
753 let val = self.cursor.goto_first()?; in next()
754 Some((self.cursor.key()?, val)) in next()
766 self.cursor.goto_end(); in next()
784 self.cursor.prev() in next_back()
787 Bound::Included(k) => match self.cursor.goto(k) { in next_back()
788 Some(_) => Some((self.cursor.key()?, self.cursor.value()?)), in next_back()
789 None => self.cursor.prev(), in next_back()
792 self.cursor.goto(k); in next_back()
794 .cursor in next_back()
796 .is_some_and(|key| self.cursor.comp.cmp(k, key).is_eq()) in next_back()
798 self.cursor.prev() in next_back()
800 Some((self.cursor.key()?, self.cursor.value()?)) in next_back()
804 self.cursor.goto_end(); in next_back()
805 self.cursor.prev() in next_back()
817 self.cursor.goto_end(); in next_back()
836 Bound::Included(k) => self.cursor.comp.cmp(key, k).is_ge(), in is_in_start_bound()
837 Bound::Excluded(k) => self.cursor.comp.cmp(key, k).is_gt(), in is_in_start_bound()
844 Bound::Included(k) => self.cursor.comp.cmp(k, key).is_ge(), in is_in_end_bound()
845 Bound::Excluded(k) => self.cursor.comp.cmp(k, key).is_gt(), in is_in_end_bound()
1374 let mut c = m.cursor(f, &()); in immutable_cursor()