pub struct WriterTF<W, M>(/* private fields */);Expand description
WriterT monad transformer: adds log accumulation to an inner monad.
WriterTF<W, M>::Of<A> = M::Of<(A, W)>
The log type W must be a Monoid (for pure/lift) and a Semigroup
(for chain, which combines logs). This is the strict (non-lazy) variant.
Trait Implementations§
Source§impl<W, M> ApplicativeSt for WriterTF<W, M>where
W: Monoid + 'static,
M: ApplicativeSt,
impl<W, M> ApplicativeSt for WriterTF<W, M>where
W: Monoid + 'static,
M: ApplicativeSt,
Auto Trait Implementations§
impl<W, M> Freeze for WriterTF<W, M>
impl<W, M> RefUnwindSafe for WriterTF<W, M>where
W: RefUnwindSafe,
M: RefUnwindSafe,
impl<W, M> Send for WriterTF<W, M>
impl<W, M> Sync for WriterTF<W, M>
impl<W, M> Unpin for WriterTF<W, M>
impl<W, M> UnsafeUnpin for WriterTF<W, M>
impl<W, M> UnwindSafe for WriterTF<W, M>where
W: UnwindSafe,
M: 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