Struct atlist_rs::IterMut[][src]

pub struct IterMut<T> { /* fields omitted */ }

A mutable iterator over the elements of a LinkedList.

This struct is created by LinkedList::iter_mut(). See its documentation for more.

This iterator is just like std::collections::linked_list::CursorMut but it can freely seek back-and-forth, and can safely mutate the list during iteration and also it can also be saved into anywhere and yield multiple elements at once.We will use std::sync::RwLock to keep it safe.

Implementations

impl<T> IterMut<T>[src]

pub fn try_unwrap(&self) -> LinkedListResult<LinkedListItem<T>>[src]

pub fn unwrap(&self) -> LinkedListItem<T>[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl<T> Clone for IterMut<T>[src]

impl<T: Debug> Debug for IterMut<T>[src]

impl<T> DoubleEndedIterator for IterMut<T>[src]

impl<T: PartialEq> Eq for IterMut<T>[src]

impl<T> From<&'_ Iter<T>> for IterMut<T>[src]

impl<T> From<&'_ IterMut<T>> for Iter<T>[src]

impl<T> From<Iter<T>> for IterMut<T>[src]

impl<T> From<IterMut<T>> for Iter<T>[src]

impl<T> FusedIterator for IterMut<T>[src]

impl<T> Iterator for IterMut<T>[src]

type Item = LinkedListItem<T>

The type of the elements being iterated over.

impl<T: PartialEq> PartialEq<Iter<T>> for IterMut<T>[src]

impl<T: PartialEq> PartialEq<IterMut<T>> for Iter<T>[src]

impl<T: PartialEq> PartialEq<IterMut<T>> for IterMut<T>[src]

impl<T: Sync + Send> Send for IterMut<T>[src]

impl<T: Sync + Send> Sync for IterMut<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for IterMut<T>

impl<T> Unpin for IterMut<T>

impl<T> UnwindSafe for IterMut<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.