pub struct IterMut<'a, P, T, S, L> where T: OwningPointer<Target=S> + 'a, P: 'a, S: Node<P, L> + 'a, L: Linkable<Container=T> + 'a {
// some fields omitted
}
An iterator over mutable references to the items of a LinkedList
Methods
impl<'a, P, T, S, L> IterMut<'a, P, T, S, L> where T: OwningPointer<Target=S> + 'a, P: 'a, S: Node<P, L> + 'a, L: Linkable<Container=T> + 'a
Inserts elt
just after the element most recently returned by .next()
.
The inserted element does not appear in the iteration.
Provides a reference to the next element, without changing the iterator.
Trait Implementations
impl<'a, P, T, S, L> Iterator for IterMut<'a, P, T, S, L> where T: OwningPointer<Target=S> + 'a, P: 'a, S: Node<P, L> + 'a, L: Linkable<Container=T> + 'a
type Item = &'a mut P
fn next(&mut self) -> Option<&'a mut P>
fn map<B, F>(self, f: F) -> Map<Self, F> where F: FnMut(Self::Item) -> B
fn filter<P>(self, predicate: P) -> Filter<Self, P> where P: FnMut(&Self::Item) -> bool
fn scan<St, B, F>(self, initial_state: St, f: F) -> Scan<Self, St, F> where F: FnMut(&mut St, Self::Item) -> Option<B>
fn fuse(self) -> Fuse<Self>
fn inspect<F>(self, f: F) -> Inspect<Self, F> where F: FnMut(&Self::Item) -> ()
fn by_ref(&mut self) -> &mut Self
fn fold<B, F>(self, init: B, f: F) -> B where F: FnMut(B, Self::Item) -> B
fn all<F>(&mut self, f: F) -> bool where F: FnMut(Self::Item) -> bool
fn any<F>(&mut self, f: F) -> bool where F: FnMut(Self::Item) -> bool
fn find<P>(&mut self, predicate: P) -> Option<Self::Item> where P: FnMut(&Self::Item) -> bool
fn max_by<B, F>(self, f: F) -> Option<Self::Item> where B: Ord, F: FnMut(&Self::Item) -> B
fn min_by<B, F>(self, f: F) -> Option<Self::Item> where F: FnMut(&Self::Item) -> B, B: Ord
fn cloned<'a, T>(self) -> Cloned<Self> where T: 'a + Clone, Self: Iterator<Item=&'a T>
fn cycle(self) -> Cycle<Self> where Self: Clone
fn sum<S = Self::Item>(self) -> S where S: Add<Self::Item, Output=S> + Zero
fn product<P = Self::Item>(self) -> P where P: Mul<Self::Item, Output=P> + One
impl<'a, P, T, S, L> DoubleEndedIterator for IterMut<'a, P, T, S, L> where T: OwningPointer<Target=S> + 'a, P: 'a, S: Node<P, L> + 'a, L: Linkable<Container=T> + 'a
impl<'a, P, T, S, L> ExactSizeIterator for IterMut<'a, P, T, S, L> where T: OwningPointer<Target=S> + 'a, P: 'a, S: Node<P, L> + 'a, L: Linkable<Container=T> + 'a
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).
Search functions by type signature (e.g.
vec -> usize
)