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

pub struct Encoder<'a> {
    writer: &'a mut (dyn Write + 'a),
    is_emitting_map_key: bool,
}

A structure for implementing serialization to JSON.

Fields

writer: &'a mut (dyn Write + 'a)is_emitting_map_key: bool

Implementations

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

pub fn new(writer: &'a mut dyn Write) -> Encoder<'a>[src]

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

Trait Implementations

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

type Error = EncoderError

Auto Trait Implementations

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

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

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

impl<'a> Unpin for Encoder<'a>

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

Blanket Implementations

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

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

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

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

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

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.