Struct serialize::json::Encoder[src]
pub struct Encoder<'a> {
// some fields omitted
}A structure for implementing serialization to JSON.
Methods
impl<'a> Encoder<'a>
fn new<'a>(wr: &'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>>(to_encode_object: &T) -> Vec<u8>
Encode the specified struct into a json [u8]
fn str_encode<T: Encodable<Encoder<'a>, IoError>>(to_encode_object: &T) -> String
Encode the specified struct into a json str