flat_map

Function flat_map 

Source
pub fn flat_map<Func, In, IntoIter, Si>(
    func: Func,
    sink: Si,
) -> FlatMap<Si, Func, IntoIter>
where Func: FnMut(In) -> IntoIter, IntoIter: IntoIterator, Si: Sink<IntoIter::Item>,
Expand description

Creates a FlatMap sink that maps each item to an iterator and flattens the results.