pub trait MapInPlace<T>: Sized {
fn flat_map_in_place<F, I>(&mut self, f: F)
where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>;
fn map_in_place<F>(&mut self, f: F)
where
F: FnMut(T) -> T,
{ ... }
}
pub trait MapInPlace<T>: Sized {
fn flat_map_in_place<F, I>(&mut self, f: F)
where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>;
fn map_in_place<F>(&mut self, f: F)
where
F: FnMut(T) -> T,
{ ... }
}