pub struct IdentityKind;Expand description
The Kind marker for the Identity monad.
This unit struct is used to implement the Kind traits (Functor, Apply,
Applicative, Monad, Bind) for Identity.
Trait Implementations§
Source§impl<T: 'static> Applicative<T> for IdentityKind
impl<T: 'static> Applicative<T> for IdentityKind
Source§impl<A, B> Apply<A, B> for IdentityKindwhere
A: 'static,
B: 'static,
impl<A, B> Apply<A, B> for IdentityKindwhere
A: 'static,
B: 'static,
Source§impl<A, B> Bind<A, B> for IdentityKindwhere
A: 'static,
B: 'static,
impl<A, B> Bind<A, B> for IdentityKindwhere
A: 'static,
B: 'static,
Source§impl Clone for IdentityKind
impl Clone for IdentityKind
Source§fn clone(&self) -> IdentityKind
fn clone(&self) -> IdentityKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentityKind
Source§impl Debug for IdentityKind
impl Debug for IdentityKind
Source§impl Default for IdentityKind
impl Default for IdentityKind
Source§fn default() -> IdentityKind
fn default() -> IdentityKind
Returns the “default value” for a type. Read more
impl Eq for IdentityKind
Source§impl<A, B> Functor<A, B> for IdentityKind
impl<A, B> Functor<A, B> for IdentityKind
Source§impl Hash for IdentityKind
impl Hash for IdentityKind
Source§impl Kind for IdentityKind
impl Kind for IdentityKind
Source§impl<A: 'static> Monad<A> for IdentityKind
impl<A: 'static> Monad<A> for IdentityKind
Source§impl Ord for IdentityKind
impl Ord for IdentityKind
Source§fn cmp(&self, other: &IdentityKind) -> Ordering
fn cmp(&self, other: &IdentityKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for IdentityKind
impl PartialEq for IdentityKind
Source§fn eq(&self, other: &IdentityKind) -> bool
fn eq(&self, other: &IdentityKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for IdentityKind
impl PartialOrd for IdentityKind
impl StructuralPartialEq for IdentityKind
Auto Trait Implementations§
impl Freeze for IdentityKind
impl RefUnwindSafe for IdentityKind
impl Send for IdentityKind
impl Sync for IdentityKind
impl Unpin for IdentityKind
impl UnsafeUnpin for IdentityKind
impl UnwindSafe for IdentityKind
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