Skip to main content

TryMap

Trait TryMap 

Source
pub trait TryMap<Arg: 'static + Clone> {
    type Mapped: 'static + Clone;

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

Required Associated Types§

Source

type Mapped: 'static + Clone

Required Methods§

Source

fn map(&self, arg: Arg) -> Result<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, M: Map<Arg>> TryMap<Arg> for M

Source§

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