1 2 3 4 5 6 7 8 9 10 11
/// Function-like mapper from one value to many values. pub trait FlatMap: Copy + Send { /// Input type. type I; /// Output iterator container type. type O: IntoIterator; /// Maps one input value to many outputs. fn flat_map(&self, i: Self::I) -> Self::O; }