Struct rustc_serialize::json::AsPrettyJson [] [src]

pub struct AsPrettyJson<'a, T: 'a> {
    // some fields omitted
}

Methods

impl<'a, T> AsPrettyJson<'a, T>
[src]

fn indent(self, indent: u32) -> AsPrettyJson<'a, T>

Set the indentation level for the emitted JSON

Trait Implementations

impl<'a, T: Encodable> Display for AsPrettyJson<'a, T>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Encodes a json value into a string