Struct serde_json::ser::CompactFormatter
[−]
[src]
pub struct CompactFormatter;
This structure compacts a JSON value with no extra whitespace.
Trait Implementations
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 ']'.