Skip to main content

Map

Trait Map 

Source
pub trait Map<Arg: 'static + Clone = ()> {
    type Mapped: 'static + Clone;

    // Required method
    fn map(&self, arg: Arg) -> Self::Mapped;
}

Required Associated Types§

Source

type Mapped: 'static + Clone

Required Methods§

Source

fn map(&self, arg: Arg) -> Self::Mapped

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<Arg: 'static + Clone, __T: Map<Arg>, __M> Map<Arg> for MappedExtra<__T, __M>

Source§

type Mapped = <__T as Map<Arg>>::Mapped

Source§

impl<Arg: 'static + Clone, __T: Map<Arg>> Map<Arg> for Lp<__T>

Source§

type Mapped = <__T as Map<Arg>>::Mapped

Source§

impl<E: 'static + Clone, X: 'static + Clone> Map<X> for InlineExtra<E>

Source§

impl<M: StaticMap<E, Mapped: 'static + Clone>, E: 'static + Clone> Map<E> for SmExtra<M>

Source§

type Mapped = <M as StaticMap<E>>::Mapped