pub struct Writer<A, W> { /* private fields */ }Expand description
A Writer monad: a computation that produces a log alongside a value.
Wraps a pair (A, W) where W is a monoid.
Implementations§
Auto Trait Implementations§
impl<A, W> Freeze for Writer<A, W>
impl<A, W> RefUnwindSafe for Writer<A, W>where
A: RefUnwindSafe,
W: RefUnwindSafe,
impl<A, W> Send for Writer<A, W>
impl<A, W> Sync for Writer<A, W>
impl<A, W> Unpin for Writer<A, W>
impl<A, W> UnsafeUnpin for Writer<A, W>where
A: UnsafeUnpin,
W: UnsafeUnpin,
impl<A, W> UnwindSafe for Writer<A, W>where
A: UnwindSafe,
W: 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