Struct serialize::json::EncoderUnstable
[-]
[+]
[src]
pub struct Encoder<'a> { // some fields omitted }
A structure for implementing serialization to JSON.
Methods
impl<'a> Encoder<'a>
fn new(writer: &'a mut Writer) -> Encoder<'a>
Creates a new JSON encoder whose output will be written to the writer specified.
fn buffer_encode<T: Encodable<Encoder<'a>, IoError>>(object: &T) -> Vec<u8>
Encode the specified struct into a json [u8]