[][src]Struct rustc_serialize::json::Encoder

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

A structure for implementing serialization to JSON.

Methods

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

Creates a new encoder whose output will be written in human-readable JSON to the specified writer

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

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

Trait Implementations

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

The error type for method results.

Auto Trait Implementations

impl<'a> !Send for Encoder<'a>

impl<'a> !Sync for Encoder<'a>

Blanket Implementations

impl<T> From for T
[src]

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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