Trait Map

Source
pub trait Map {
    type Input;
    type C<T>;

    // Required method
    fn map<Output, F: FnMut(Self::Input) -> Output>(
        self,
        f: F,
    ) -> Self::C<Output>;
}

Required Associated Types§

Source

type Input

Source

type C<T>

Required Methods§

Source

fn map<Output, F: FnMut(Self::Input) -> Output>(self, f: F) -> Self::C<Output>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> Map for Vec<T>

Source§

type Input = T

Source§

type C<A> = Vec<A>

Source§

fn map<Output, F: FnMut(Self::Input) -> Output>(self, f: F) -> Self::C<Output>

Implementors§