pub struct WriterSink<W: Write> { /* private fields */ }Available on crate feature
std only.Expand description
Sink that line-writes String items into any std::io::Write.
Each item is followed by \n. Upstream stages can convert via
.map(|x| x.to_string()) for any core::fmt::Display type.
Implementations§
Source§impl<W: Write> WriterSink<W>
impl<W: Write> WriterSink<W>
Sourcepub fn into_inner(self) -> W
pub fn into_inner(self) -> W
Consume the sink and return the wrapped writer.
Trait Implementations§
Auto Trait Implementations§
impl<W> Freeze for WriterSink<W>where
W: Freeze,
impl<W> RefUnwindSafe for WriterSink<W>where
W: RefUnwindSafe,
impl<W> Send for WriterSink<W>where
W: Send,
impl<W> Sync for WriterSink<W>where
W: Sync,
impl<W> Unpin for WriterSink<W>where
W: Unpin,
impl<W> UnsafeUnpin for WriterSink<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WriterSink<W>where
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