pub struct Cursor<'c, T> { /* private fields */ }Expand description
Cursor.
This struct is created by the cursor method on CircularList.
Implementations§
Source§impl<'c, T> Cursor<'c, T>
impl<'c, T> Cursor<'c, T>
Sourcepub fn move_next(&mut self)
pub fn move_next(&mut self)
Moves the cursor to the next element of the CircularList.
If the cursor is pointing to the last element then this will move it to
the first element of the CircularList.
Sourcepub fn move_prev(&mut self)
pub fn move_prev(&mut self)
Moves the cursor to the previous element of the CircularList.
If the cursor is pointing to the first element then this will move it to
the last element of the CircularList.
Auto Trait Implementations§
impl<'c, T> !Send for Cursor<'c, T>
impl<'c, T> !Sync for Cursor<'c, T>
impl<'c, T> Freeze for Cursor<'c, T>
impl<'c, T> RefUnwindSafe for Cursor<'c, T>where
T: RefUnwindSafe,
impl<'c, T> Unpin for Cursor<'c, T>
impl<'c, T> UnsafeUnpin for Cursor<'c, T>
impl<'c, T> UnwindSafe for Cursor<'c, T>where
T: RefUnwindSafe,
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