pub struct OptionKind;Expand description
Marker for the Option type constructor.
Implements Kind such that OptionKind::Of<T> resolves to Option<T>.
Trait Implementations§
Source§impl<T: 'static> Applicative<T> for OptionKind
impl<T: 'static> Applicative<T> for OptionKind
Source§impl<A: 'static, B: 'static> Apply<A, B> for OptionKind
impl<A: 'static, B: 'static> Apply<A, B> for OptionKind
Source§impl<A: 'static, B: 'static> Bind<A, B> for OptionKind
impl<A: 'static, B: 'static> Bind<A, B> for OptionKind
Source§impl Clone for OptionKind
impl Clone for OptionKind
Source§fn clone(&self) -> OptionKind
fn clone(&self) -> OptionKind
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 OptionKind
Source§impl Debug for OptionKind
impl Debug for OptionKind
Source§impl Default for OptionKind
impl Default for OptionKind
Source§fn default() -> OptionKind
fn default() -> OptionKind
Returns the “default value” for a type. Read more
impl Eq for OptionKind
Source§impl<A, B> Functor<A, B> for OptionKind
impl<A, B> Functor<A, B> for OptionKind
Source§impl Hash for OptionKind
impl Hash for OptionKind
Source§impl Kind for OptionKind
impl Kind for OptionKind
Source§impl<A: 'static> Monad<A> for OptionKind
impl<A: 'static> Monad<A> for OptionKind
Source§impl Ord for OptionKind
impl Ord for OptionKind
Source§fn cmp(&self, other: &OptionKind) -> Ordering
fn cmp(&self, other: &OptionKind) -> 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 OptionKind
impl PartialEq for OptionKind
Source§fn eq(&self, other: &OptionKind) -> bool
fn eq(&self, other: &OptionKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for OptionKind
impl PartialOrd for OptionKind
impl StructuralPartialEq for OptionKind
Auto Trait Implementations§
impl Freeze for OptionKind
impl RefUnwindSafe for OptionKind
impl Send for OptionKind
impl Sync for OptionKind
impl Unpin for OptionKind
impl UnsafeUnpin for OptionKind
impl UnwindSafe for OptionKind
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