pub struct CursorPrettyWriteSink<'a, T: SourceCursorSink<'a>> { /* private fields */ }Expand description
This is a CursorSink that wraps a sink (impl SourceCursorSink) 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 also attempts to write additional newlines and indentation into the Writer to create a more aesthetically
pleasing output. It can be used as a light-weight formatter for ToCursors structs.