Trait Mapper

Source
pub trait Mapper {
    type Item;
    type Cont<T>: Mapper<Item = T>;

    // Required method
    fn map<U, F>(self, f: F) -> Self::Cont<U>
       where F: FnOnce(Self::Item) -> U;
}

Required Associated Types§

Source

type Item

Source

type Cont<T>: Mapper<Item = T>

Required Methods§

Source

fn map<U, F>(self, f: F) -> Self::Cont<U>
where F: FnOnce(Self::Item) -> U,

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.

Implementors§