Skip to main content

Tuple2Map

Trait Tuple2Map 

Source
pub trait Tuple2Map<T> {
    // Required method
    fn map<U>(self, f: impl FnMut(T) -> U) -> (U, U);
}
Expand description

Mapping for Tuple2

Required Methods§

Source

fn map<U>(self, f: impl FnMut(T) -> U) -> (U, U)

Mapping for Tuple2

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> Tuple2Map<T> for (T, T)

Source§

fn map<U>(self, f: impl FnMut(T) -> U) -> (U, U)

Implementors§