pub struct CursorPeek<'a, 'b, T: ?Sized + ListItem<ID>, const ISNEXT: bool, const ID: u64> { /* private fields */ }
Expand description
References the element in the list next to the cursor.
§Invariants
ptr
is an element inself.cursor.list
.ISNEXT == (self.ptr == self.cursor.next)
.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, 'b, T, const ISNEXT: bool, const ID: u64> Freeze for CursorPeek<'a, 'b, T, ISNEXT, ID>where
T: ?Sized,
impl<'a, 'b, T, const ISNEXT: bool, const ID: u64> !RefUnwindSafe for CursorPeek<'a, 'b, T, ISNEXT, ID>
impl<'a, 'b, T, const ISNEXT: bool, const ID: u64> !Send for CursorPeek<'a, 'b, T, ISNEXT, ID>
impl<'a, 'b, T, const ISNEXT: bool, const ID: u64> !Sync for CursorPeek<'a, 'b, T, ISNEXT, ID>
impl<'a, 'b, T, const ISNEXT: bool, const ID: u64> Unpin for CursorPeek<'a, 'b, T, ISNEXT, ID>where
T: ?Sized,
impl<'a, 'b, T, const ISNEXT: bool, const ID: u64> !UnwindSafe for CursorPeek<'a, 'b, T, ISNEXT, ID>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more