pub struct CursorWriteSink<'a, T: Write> { /* private fields */ }Expand description
This is a CursorSink that wraps a Writer (impl fmt::Write) and on each CursorSink::append() call, will write
the contents of the cursor Cursor given into the given Writer - using the given &'a str as the original source.
This is useful as way to turn Cursors into Strings or u8s (or files or whatever else implements Write).
Implementations§
Trait Implementations§
Source§impl<'a, T: Write> CursorSink for CursorWriteSink<'a, T>
impl<'a, T: Write> CursorSink for CursorWriteSink<'a, T>
Source§impl<'a, T: Write> SourceCursorSink<'a> for CursorWriteSink<'a, T>
impl<'a, T: Write> SourceCursorSink<'a> for CursorWriteSink<'a, T>
fn append(&mut self, c: SourceCursor<'a>)
Auto Trait Implementations§
impl<'a, T> Freeze for CursorWriteSink<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for CursorWriteSink<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CursorWriteSink<'a, T>where
T: Send,
impl<'a, T> Sync for CursorWriteSink<'a, T>where
T: Sync,
impl<'a, T> Unpin for CursorWriteSink<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for CursorWriteSink<'a, 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