[][src]Struct serde_lexpr::print::CustomizedFormatter

pub struct CustomizedFormatter { /* fields omitted */ }

A formatter which can be tuned with regards to S-expressions representation.

Trait Implementations

impl Clone for CustomizedFormatter[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Formatter for CustomizedFormatter[src]

fn write_char_escape<W>(
    &mut self,
    writer: &mut W,
    char_escape: CharEscape
) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Writes a character escape code to the specified writer.

fn write_null<W>(&mut self, writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Writes a representation of the special nil value to the specified writer.

fn write_number<W>(
    &mut self,
    writer: &mut W,
    value: &Number
) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Writes an integer value like -123 to the specified writer.

fn begin_string<W>(&mut self, writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called before each series of write_string_fragment and write_char_escape. Writes a " to the specified writer. Read more

fn end_string<W>(&mut self, writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called after each series of write_string_fragment and write_char_escape. Writes a " to the specified writer. Read more

fn write_string_fragment<W>(
    &mut self,
    writer: &mut W,
    fragment: &str
) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Writes a string fragment that doesn't need any escaping to the specified writer. Read more

fn write_symbol<W>(&mut self, writer: &mut W, name: &str) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Writes a symbol to the specified writer.

fn begin_list<W>(&mut self, writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called before any list elements. Writes a ( to the specified writer. Read more

fn end_list<W>(&mut self, writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called after all list elements have been written. Writes a ) to the specified writer. Read more

fn begin_seq_element<W>(
    &mut self,
    writer: &mut W,
    first: bool
) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called before starting to write a list or vector element. Writes a space to the specified writer, if needed. Read more

fn end_seq_element<W>(&mut self, _writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called after every list or vector element.

fn write_dot<W>(&mut self, writer: &mut W) -> Result<(), Error> where
    W: Write + ?Sized
[src]

Called before writing the tail of an improper list, or more generally, the cdr field of a cons cell. Writes a . to the specified writer. Read more

impl Debug for CustomizedFormatter[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]