Lines Matching defs:CursorPeek
976 pub fn peek_next(&mut self) -> Option<CursorPeek<'_, 'a, T, true, ID>> {
984 Some(CursorPeek {
991 pub fn peek_prev(&mut self) -> Option<CursorPeek<'_, 'a, T, false, ID>> {
1001 Some(CursorPeek {
1101 pub struct CursorPeek<'a, 'b, T: ?Sized + ListItem<ID>, const ISNEXT: bool, const ID: u64> {
1107 CursorPeek<'a, 'b, T, ISNEXT, ID>
1130 // access to the `CursorPeek`, the `Cursor` or the `List`. However, the `ArcBorrow` holds
1131 // an immutable borrow on the `CursorPeek`, which in turn holds a mutable borrow on the
1133 // access requires first releasing the immutable borrow on the `CursorPeek`.
1141 for CursorPeek<'a, 'b, T, ISNEXT, ID>
1144 // get rid of the `CursorPeek::arc` method and change the deref target to `ArcBorrow<'a, T>`.
1146 // and then call `CursorPeek::remove` without giving up the `ArcBorrow<'a, T>`, which would be
1156 // access to the `CursorPeek`, the `Cursor` or the `List`. However, the `&T` holds an
1157 // immutable borrow on the `CursorPeek`, which in turn holds a mutable borrow on the
1159 // requires first releasing the immutable borrow on the `CursorPeek`.