Trait slice_mip::MapInPlace
[−]
[src]
pub trait MapInPlace<T> { fn map_in_place<F>(&mut self, f: F)
where
F: FnMut(&T) -> T; }
A sequence that can be mutated in place.
Required Methods
fn map_in_place<F>(&mut self, f: F) where
F: FnMut(&T) -> T,
F: FnMut(&T) -> T,
Apply the given map function to each item in the current sequence and replace each item with its associated map result.
Implementations on Foreign Types
impl<T> MapInPlace<T> for [T]
[src]
fn map_in_place<F>(&mut self, f: F) where
F: FnMut(&T) -> T,
[src]
F: FnMut(&T) -> T,