pub struct PrettyFormatter { /* private fields */ }Expand description
Write some whitespace and indentation to improve human readability
Implementations§
Source§impl PrettyFormatter
impl PrettyFormatter
pub fn new() -> PrettyFormatter
Trait Implementations§
Source§impl JsonFormatter for PrettyFormatter
impl JsonFormatter for PrettyFormatter
Source§fn after_start_nested(&mut self) -> &str
fn after_start_nested(&mut self) -> &str
optional newline after the start of an object or array; adds a level of nesting
Source§fn after_element(&self) -> &str
fn after_element(&self) -> &str
optional newline after an element
Source§fn before_end_nested(&mut self, is_empty: bool) -> &str
fn before_end_nested(&mut self, is_empty: bool) -> &str
optional indent before then ending character of a nested object or array; removes a level of nesting
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