Trait rustc_ap_rustc_data_structures::map_in_place::MapInPlace [−][src]
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, { ... } }
Required methods
fn flat_map_in_place<F, I>(&mut self, f: F) where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>,
[src]
F: FnMut(T) -> I,
I: IntoIterator<Item = T>,
Provided methods
fn map_in_place<F>(&mut self, f: F) where
F: FnMut(T) -> T,
[src]
F: FnMut(T) -> T,
Implementations on Foreign Types
impl<T> MapInPlace<T> for Vec<T>
[src]
impl<T> MapInPlace<T> for Vec<T>
[src]fn flat_map_in_place<F, I>(&mut self, f: F) where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>,
[src]
F: FnMut(T) -> I,
I: IntoIterator<Item = T>,
impl<T, A: Array<Item = T>> MapInPlace<T> for SmallVec<A>
[src]
impl<T, A: Array<Item = T>> MapInPlace<T> for SmallVec<A>
[src]fn flat_map_in_place<F, I>(&mut self, f: F) where
F: FnMut(T) -> I,
I: IntoIterator<Item = T>,
[src]
F: FnMut(T) -> I,
I: IntoIterator<Item = T>,