[][src]Trait haskell_bits::functor::Functor

pub trait Functor: LinearFunctor {
    fn fmap<TIn, TOut>(f: impl Fn(&TIn) -> TOut, x: &Self::Type) -> Self::Type
    where
        Self: WithTypeArg<TIn> + WithTypeArg<TOut>
; fn fmapconst<TIn, TOut>(e: &TOut, x: &Self::Type) -> Self::Type
    where
        Self: WithTypeArg<TIn> + WithTypeArg<TOut>,
        TOut: Clone
, { ... } }

Required methods

fn fmap<TIn, TOut>(f: impl Fn(&TIn) -> TOut, x: &Self::Type) -> Self::Type where
    Self: WithTypeArg<TIn> + WithTypeArg<TOut>, 

Loading content...

Provided methods

fn fmapconst<TIn, TOut>(e: &TOut, x: &Self::Type) -> Self::Type where
    Self: WithTypeArg<TIn> + WithTypeArg<TOut>,
    TOut: Clone

Loading content...

Implementors

impl Functor for OptionTypeCon[src]

impl Functor for VecTypeCon[src]

Loading content...