Function map_third

Source
pub fn map_third<T: Index<2>, U>(
    f: impl FnMut(T::Nth) -> U,
) -> impl FnMut(T) -> T::NthMapped<U>
Expand description

Returns a function that transforms the third element of a tuple with f. For a more generic function, see Tuple::map_nth