pub struct CursorFmtSink<'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 fmt::Write).
Implementations§
Trait Implementations§
Source§impl<'a, T: Write> CursorSink for CursorFmtSink<'a, T>
impl<'a, T: Write> CursorSink for CursorFmtSink<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for CursorFmtSink<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for CursorFmtSink<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for CursorFmtSink<'a, T>where
T: Send,
impl<'a, T> Sync for CursorFmtSink<'a, T>where
T: Sync,
impl<'a, T> Unpin for CursorFmtSink<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for CursorFmtSink<'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