Trait functional::Functor [] [src]

pub trait Functor: Generic1 {
    fn fmap<Y, F: Fn(Self::Type) -> Y>(self, f: F) -> Self::Type where Self: Rebind1<Y>;
}

Basic functional trait

Required Methods

fn fmap<Y, F: Fn(Self::Type) -> Y>(self, f: F) -> Self::Type where Self: Rebind1<Y>

Apply function to value(s) in the functor producing new functor with same type

Implementors