pub struct OptionTypeCon;
Trait Implementations§
Source§impl Applicative for TypeCon
impl Applicative for TypeCon
fn ap<TIn, TOut, TFunc>( f: &<TypeCon as WithTypeArg<TFunc>>::Type, x: &<TypeCon as WithTypeArg<TIn>>::Type, ) -> <TypeCon as WithTypeArg<TOut>>::Type
fn lift2<TIn1, TIn2, TOut, TFunc>( f: TFunc, x1: &<TypeCon as WithTypeArg<TIn1>>::Type, x2: &<TypeCon as WithTypeArg<TIn2>>::Type, ) -> <TypeCon as WithTypeArg<TOut>>::Type
Source§impl Functor for TypeCon
impl Functor for TypeCon
fn fmap<TIn, TOut, F>( f: F, x: &<TypeCon as WithTypeArg<TIn>>::Type, ) -> <TypeCon as WithTypeArg<TOut>>::Type
fn fmapconst<TIn, TOut>( e: &TOut, x: &<Self as WithTypeArg<TIn>>::Type, ) -> <Self as WithTypeArg<TOut>>::Type
Source§impl LinearApplicative for TypeCon
impl LinearApplicative for TypeCon
fn lap<TIn, TOut, TFunc>(
f: <TypeCon as WithTypeArg<TFunc>>::Type,
x: <TypeCon as WithTypeArg<TIn>>::Type,
) -> <TypeCon as WithTypeArg<TOut>>::Typewhere
TFunc: FnOnce(TIn) -> TOut,
fn llift2<TIn1, TIn2, TOut, TFunc>(
f: TFunc,
x1: <TypeCon as WithTypeArg<TIn1>>::Type,
x2: <TypeCon as WithTypeArg<TIn2>>::Type,
) -> <TypeCon as WithTypeArg<TOut>>::Typewhere
TFunc: FnOnce(TIn1, TIn2) -> TOut,
Source§impl LinearFunctor for TypeCon
impl LinearFunctor for TypeCon
fn lmap<TIn, TOut, F>(
f: F,
x: <TypeCon as WithTypeArg<TIn>>::Type,
) -> <TypeCon as WithTypeArg<TOut>>::Typewhere
F: Fn(TIn) -> TOut,
fn lmapconst<TIn, TOut>( e: &TOut, x: <Self as WithTypeArg<TIn>>::Type, ) -> <Self as WithTypeArg<TOut>>::Type
Source§impl LinearMonad for TypeCon
impl LinearMonad for TypeCon
fn lbind<TIn, TOut, F>( x: <TypeCon as WithTypeArg<TIn>>::Type, f: F, ) -> <TypeCon as WithTypeArg<TOut>>::Type
fn lbind_ignore<TIn, TOut>( x: <Self as WithTypeArg<TIn>>::Type, y: &<Self as WithTypeArg<TOut>>::Type, ) -> <Self as WithTypeArg<TOut>>::Type
fn ljoin<T>( x: <Self as WithTypeArg<<Self as WithTypeArg<T>>::Type>>::Type, ) -> <Self as WithTypeArg<T>>::Type
Source§impl Monad for TypeCon
impl Monad for TypeCon
fn bind<TIn, TOut, F>( x: &<TypeCon as WithTypeArg<TIn>>::Type, f: F, ) -> <TypeCon as WithTypeArg<TOut>>::Type
fn bind_ignore<TIn, TOut>( x: &<Self as WithTypeArg<TIn>>::Type, y: &<Self as WithTypeArg<TOut>>::Type, ) -> <Self as WithTypeArg<TOut>>::Type
fn fjoin<T>(
x: &<Self as WithTypeArg<<Self as WithTypeArg<T>>::Type>>::Type,
) -> <Self as WithTypeArg<T>>::Typewhere
Self: WithTypeArg<T> + WithTypeArg<<Self as WithTypeArg<T>>::Type>,
<Self as WithTypeArg<T>>::Type: Clone,
impl<T> TypeApp<TypeCon, T> for Option<T>
Auto Trait Implementations§
impl Freeze for TypeCon
impl RefUnwindSafe for TypeCon
impl Send for TypeCon
impl Sync for TypeCon
impl Unpin for TypeCon
impl UnwindSafe for TypeCon
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more