Crate fmap

source ·
Expand description

Functors in Rust

Traits

  • A generic type (e.g. Vec<A>) whose inner type can be mapped over (e.g. to Vec<B>)
  • Helper trait to convert between <T as Functor>::Mapped and T
  • Trait Identity<T> is implemented for all T: Sized and allows conversion between Self and T
  • Trait allowing to include concrete types in bounds