Struct serde_json::ser::CompactFormatter
[−]
[src]
pub struct CompactFormatter;
This structure compacts a JSON value with no extra whitespace.
Trait Implementations
impl Clone for CompactFormatter
[src]
fn clone(&self) -> CompactFormatter
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for CompactFormatter
[src]
impl Formatter for CompactFormatter
[src]
fn open<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write
Called when serializing a '{' or '['.
fn comma<W>(&mut self, writer: &mut W, first: bool) -> Result<()> where W: Write
Called when serializing a ','.
fn colon<W>(&mut self, writer: &mut W) -> Result<()> where W: Write
Called when serializing a ':'.
fn close<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write
Called when serializing a '}' or ']'.