Struct PrettyFormatter
pub struct PrettyFormatter<'a> { /* private fields */ }
This structure pretty prints a JSON value to make it human readable.
Implementations
impl<'a> PrettyFormatter<'a>
fn new() -> SelfConstruct a pretty printer formatter that defaults to using two spaces for indentation.
fn with_indent(indent: &'a [u8]) -> SelfConstruct a pretty printer formatter that uses the
indentstring for indentation.
Trait Implementations
impl<'a> Clone for PrettyFormatter<'a>
fn clone(&self) -> Self
impl<'a> Debug for PrettyFormatter<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a> Default for PrettyFormatter<'a>
fn default() -> Self
impl<'a> Formatter for PrettyFormatter<'a>
fn begin_array<W>(&mut self, writer: &mut W) -> Result<()> where W: ?Sized + Write,fn end_array<W>(&mut self, writer: &mut W) -> Result<()> where W: ?Sized + Write,fn begin_array_value<W>(&mut self, writer: &mut W, first: bool) -> Result<()> where W: ?Sized + Write,fn end_array_value<W>(&mut self, _writer: &mut W) -> Result<()> where W: ?Sized + Write,fn begin_object<W>(&mut self, writer: &mut W) -> Result<()> where W: ?Sized + Write,fn end_object<W>(&mut self, writer: &mut W) -> Result<()> where W: ?Sized + Write,fn begin_object_key<W>(&mut self, writer: &mut W, first: bool) -> Result<()> where W: ?Sized + Write,fn begin_object_value<W>(&mut self, writer: &mut W) -> Result<()> where W: ?Sized + Write,fn end_object_value<W>(&mut self, _writer: &mut W) -> Result<()> where W: ?Sized + Write,