Struct rustc_ap_rustc_serialize::json::PrettyEncoder[][src]

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

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

Implementations

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

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

Trait Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.