Struct serialize::json::PrettyEncoder [] [src]

pub struct PrettyEncoder<'a> { /* fields omitted */ }

Another encoder for JSON, but prints out human-readable JSON instead of compact data

Methods

impl<'a> PrettyEncoder<'a>
[src]

[src]

Creates a new encoder whose output will be written to the specified writer

[src]

Set the number of spaces to indent for each level. This is safe to set during encoding.

Trait Implementations

impl<'a> Encoder for PrettyEncoder<'a>
[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]

[src]