oxilean_std/functor/optionfunctor_traits.rs
1//! # OptionFunctor - Trait Implementations
2//!
3//! This module contains trait implementations for `OptionFunctor`.
4//!
5//! ## Implemented Traits
6//!
7//! - `Functor`
8//!
9//! 🤖 Generated with [SplitRS](https://github.com/cool-japan/splitrs)
10
11use super::functions::Functor;
12use super::types::OptionFunctor;
13
14impl<A> Functor<A> for OptionFunctor<A> {
15 type Mapped<B> = OptionFunctor<B>;
16 fn fmap<B, F: Fn(A) -> B>(self, f: F) -> OptionFunctor<B> {
17 OptionFunctor(self.0.map(f))
18 }
19}