#[must_use = "iterator adaptors are lazy and do nothing unless consumed"]
pub struct Scan<I, St, F> {
pub state: St,
// some fields omitted
}
An iterator to maintain state while iterating another iterator
Fields
state | The current internal state to be passed to the closure next.
|
Trait Implementations
impl<A, B, I, St, F> Iterator for Scan<I, St, F> where I: Iterator, <I as Iterator>::Item == A, F: FnMut(&mut St, A), <F as FnMut(&mut St, A)>::Output == Option<B>
Derived Implementations
impl<I, St, F> Clone for Scan<I, St, F> where I: Clone, St: Clone, F: Clone
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
).