Trait tuple::Map
[−]
[src]
pub trait Map<T>: TupleElements { type Output: TupleElements<Element = T>; fn map<F>(self, f: F) -> Self::Output
where
F: Fn(Self::Element) -> T; fn map_mut<F>(self, f: F) -> Self::Output
where
F: FnMut(Self::Element) -> T; }
Associated Types
type Output: TupleElements<Element = T>
Required Methods
fn map<F>(self, f: F) -> Self::Output where
F: Fn(Self::Element) -> T,
F: Fn(Self::Element) -> T,
apply a function to each element and return the result
fn map_mut<F>(self, f: F) -> Self::Output where
F: FnMut(Self::Element) -> T,
F: FnMut(Self::Element) -> T,
same as map, but accepts a FnMut
Implementors
impl<T, U> Map<U> for [T; 1] type Output = [U; 1];impl<T, U> Map<U> for [T; 2] type Output = [U; 2];impl<T, U> Map<U> for [T; 3] type Output = [U; 3];impl<T, U> Map<U> for [T; 4] type Output = [U; 4];impl<T, U> Map<U> for [T; 5] type Output = [U; 5];impl<T, U> Map<U> for [T; 6] type Output = [U; 6];impl<T, U> Map<U> for [T; 7] type Output = [U; 7];impl<T, U> Map<U> for [T; 8] type Output = [U; 8];impl<T, U> Map<U> for [T; 9] type Output = [U; 9];impl<T, U> Map<U> for [T; 10] type Output = [U; 10];impl<T, U> Map<U> for [T; 11] type Output = [U; 11];impl<T, U> Map<U> for [T; 12] type Output = [U; 12];impl<T, U> Map<U> for [T; 13] type Output = [U; 13];impl<T, U> Map<U> for [T; 14] type Output = [U; 14];impl<T, U> Map<U> for [T; 15] type Output = [U; 15];impl<T, U> Map<U> for [T; 16] type Output = [U; 16];impl<T, U> Map<U> for T1<T> type Output = T1<U>;impl<T, U> Map<U> for (T,) type Output = (U,);impl<T, U> Map<U> for T2<T, T> type Output = T2<U, U>;impl<T, U> Map<U> for (T, T) type Output = (U, U);impl<T, U> Map<U> for T3<T, T, T> type Output = T3<U, U, U>;impl<T, U> Map<U> for (T, T, T) type Output = (U, U, U);impl<T, U> Map<U> for T4<T, T, T, T> type Output = T4<U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T) type Output = (U, U, U, U);impl<T, U> Map<U> for T5<T, T, T, T, T> type Output = T5<U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T) type Output = (U, U, U, U, U);impl<T, U> Map<U> for T6<T, T, T, T, T, T> type Output = T6<U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T) type Output = (U, U, U, U, U, U);impl<T, U> Map<U> for T7<T, T, T, T, T, T, T> type Output = T7<U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U);impl<T, U> Map<U> for T8<T, T, T, T, T, T, T, T> type Output = T8<U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T9<T, T, T, T, T, T, T, T, T> type Output = T9<U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T10<T, T, T, T, T, T, T, T, T, T> type Output = T10<U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T11<T, T, T, T, T, T, T, T, T, T, T> type Output = T11<U, U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T12<T, T, T, T, T, T, T, T, T, T, T, T> type Output = T12<U, U, U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T13<T, T, T, T, T, T, T, T, T, T, T, T, T> type Output = T13<U, U, U, U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T14<T, T, T, T, T, T, T, T, T, T, T, T, T, T> type Output = T14<U, U, U, U, U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T15<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T> type Output = T15<U, U, U, U, U, U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U, U, U, U, U, U);impl<T, U> Map<U> for T16<T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T> type Output = T16<U, U, U, U, U, U, U, U, U, U, U, U, U, U, U, U>;impl<T, U> Map<U> for (T, T, T, T, T, T, T, T, T, T, T, T, T, T, T, T) type Output = (U, U, U, U, U, U, U, U, U, U, U, U, U, U, U, U);