FunctorIter

Trait FunctorIter 

Source
pub trait FunctorIter<F, T>
where F: FnOnce(Self::Elem) -> T,
{ type Cont<U>: ?Sized; type Iter; type Elem; // Required method fn apply_all(self, f: F) -> Self::Cont<T>; }

Required Associated Types§

Required Methods§

Source

fn apply_all(self, f: F) -> Self::Cont<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<F, X, Y, S, I> FunctorIter<F, Y> for S
where S: IntoIterator<Item = X, IntoIter = I>, F: FnMut(X) -> Y, I: Iterator<Item = X>,

Source§

type Cont<U> = Map<<S as IntoIterator>::IntoIter, F>

Source§

type Iter = I

Source§

type Elem = X