pub struct WriterMonad<A: Clone> {
pub value: A,
pub log: Vec<String>,
}Expand description
Writer monad: Writer w a = (a, w) with Monoid w.
Fields§
§value: A§log: Vec<String>Implementations§
Trait Implementations§
Source§impl<A: Clone + Clone> Clone for WriterMonad<A>
impl<A: Clone + Clone> Clone for WriterMonad<A>
Source§fn clone(&self) -> WriterMonad<A>
fn clone(&self) -> WriterMonad<A>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<A> Freeze for WriterMonad<A>where
A: Freeze,
impl<A> RefUnwindSafe for WriterMonad<A>where
A: RefUnwindSafe,
impl<A> Send for WriterMonad<A>where
A: Send,
impl<A> Sync for WriterMonad<A>where
A: Sync,
impl<A> Unpin for WriterMonad<A>where
A: Unpin,
impl<A> UnsafeUnpin for WriterMonad<A>where
A: UnsafeUnpin,
impl<A> UnwindSafe for WriterMonad<A>where
A: 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