Struct fast_list::LinkedListWalker
source · pub struct LinkedListWalker { /* private fields */ }
Implementations§
source§impl LinkedListWalker
impl LinkedListWalker
pub fn new<T>( list: &LinkedList<T>, start: LinkedListIndex, reverse: bool ) -> Self
Trait Implementations§
source§impl<T> Walker<&LinkedList<T>> for LinkedListWalker
impl<T> Walker<&LinkedList<T>> for LinkedListWalker
source§fn walk_next(&mut self, context: &LinkedList<T>) -> Option<Self::Item>
fn walk_next(&mut self, context: &LinkedList<T>) -> Option<Self::Item>
Advance to the next item, returns the indices of the items in the list and does not hold a borrow of the list, allowing for mutation while traversing.
§Excludes the starting index
type Item = LinkedListIndex
Auto Trait Implementations§
impl Freeze for LinkedListWalker
impl RefUnwindSafe for LinkedListWalker
impl Send for LinkedListWalker
impl Sync for LinkedListWalker
impl Unpin for LinkedListWalker
impl UnwindSafe for LinkedListWalker
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