pub struct OptionComonad<T: Clone> { /* private fields */ }Expand description
OptionComonad represents a comonadic structure for Option with a fixed default.
Implementations§
Auto Trait Implementations§
impl<T> Freeze for OptionComonad<T>where
T: Freeze,
impl<T> RefUnwindSafe for OptionComonad<T>where
T: RefUnwindSafe,
impl<T> Send for OptionComonad<T>where
T: Send,
impl<T> Sync for OptionComonad<T>where
T: Sync,
impl<T> Unpin for OptionComonad<T>where
T: Unpin,
impl<T> UnsafeUnpin for OptionComonad<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for OptionComonad<T>where
T: UnwindSafe,
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