pub struct MaybeTC;Trait Implementations§
Source§impl Applicative for MaybeTC
impl Applicative for MaybeTC
fn pure<T>(x: T) -> Self::Constructor<T>
fn apply<A, B, F>(
ff: Self::Constructor<F>,
fa: Self::Constructor<A>,
) -> Self::Constructor<B>where
F: FnOnce(A) -> B,
Source§impl Functor for MaybeTC
impl Functor for MaybeTC
type Constructor<T> = Maybe<T>
fn fmap<A, B, F>(fa: Self::Constructor<A>, f: F) -> Self::Constructor<B>where
F: FnOnce(A) -> B,
Source§impl Monad for MaybeTC
impl Monad for MaybeTC
fn bind<A, B, F>(ma: Self::Constructor<A>, f: F) -> Self::Constructor<B>where
F: FnOnce(A) -> Self::Constructor<B>,
Auto Trait Implementations§
impl Freeze for MaybeTC
impl RefUnwindSafe for MaybeTC
impl Send for MaybeTC
impl Sync for MaybeTC
impl Unpin for MaybeTC
impl UnwindSafe for MaybeTC
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