pub struct CompactFormatter;Expand description
Write a minimum of whitespace, minimizing output size
Trait Implementations§
Source§impl JsonFormatter for CompactFormatter
impl JsonFormatter for CompactFormatter
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 CompactFormatter
impl RefUnwindSafe for CompactFormatter
impl Send for CompactFormatter
impl Sync for CompactFormatter
impl Unpin for CompactFormatter
impl UnwindSafe for CompactFormatter
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