Trait serde::json::ser::Formatter [] [src]

pub trait Formatter {
    fn open<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write;
    fn comma<W>(&mut self, writer: &mut W, first: bool) -> Result<()> where W: Write;
    fn colon<W>(&mut self, writer: &mut W) -> Result<()> where W: Write;
    fn close<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write;
}

Required Methods

fn open<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write

fn comma<W>(&mut self, writer: &mut W, first: bool) -> Result<()> where W: Write

fn colon<W>(&mut self, writer: &mut W) -> Result<()> where W: Write

fn close<W>(&mut self, writer: &mut W, ch: u8) -> Result<()> where W: Write

Implementors