pub struct PrettyFormatter { /* private fields */ }
Implementations§
source§impl PrettyFormatter
impl PrettyFormatter
pub fn new() -> Self
pub fn with_indent(indent: &'static [u8]) -> Self
Trait Implementations§
source§impl Default for PrettyFormatter
impl Default for PrettyFormatter
source§impl<W> Formatter<W> for PrettyFormatterwhere
W: Write,
impl<W> Formatter<W> for PrettyFormatterwhere
W: Write,
fn write_number<N>(&mut self, writer: &mut W, value: N) -> Result<()>
fn write_bool(&mut self, writer: &mut W, value: bool) -> Result<()>
fn write_null(&mut self, writer: &mut W) -> Result<()>
fn write_str(&mut self, writer: &mut W, value: &str) -> Result<()>
fn write_array_start(&mut self, writer: &mut W) -> Result<()>
fn write_array_end(&mut self, writer: &mut W) -> Result<()>
fn write_array_element_begin( &mut self, writer: &mut W, first: bool, ) -> Result<()>
fn write_array_element_end(&mut self, _writer: &mut W) -> Result<()>
fn write_object_start(&mut self, writer: &mut W) -> Result<()>
fn write_object_end(&mut self, writer: &mut W) -> Result<()>
fn write_object_key_begin(&mut self, writer: &mut W, first: bool) -> Result<()>
fn write_object_key_end(&mut self, _writer: &mut W) -> Result<()>
fn write_object_value_begin(&mut self, writer: &mut W) -> Result<()>
fn write_object_value_end(&mut self, _writer: &mut W) -> Result<()>
Auto Trait Implementations§
impl Freeze for PrettyFormatter
impl RefUnwindSafe for PrettyFormatter
impl Send for PrettyFormatter
impl Sync for PrettyFormatter
impl Unpin for PrettyFormatter
impl UnwindSafe for PrettyFormatter
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