Trait extra::serialize::Encoder

pub trait Encoder {
    fn emit_nil(&mut self);
    fn emit_uint(&mut self, v: uint);
    fn emit_u64(&mut self, v: u64);
    fn emit_u32(&mut self, v: u32);
    fn emit_u16(&mut self, v: u16);
    fn emit_u8(&mut self, v: u8);
    fn emit_int(&mut self, v: int);
    fn emit_i64(&mut self, v: i64);
    fn emit_i32(&mut self, v: i32);
    fn emit_i16(&mut self, v: i16);
    fn emit_i8(&mut self, v: i8);
    fn emit_bool(&mut self, v: bool);
    fn emit_float(&mut self, v: float);
    fn emit_f64(&mut self, v: f64);
    fn emit_f32(&mut self, v: f32);
    fn emit_char(&mut self, v: char);
    fn emit_str(&mut self, v: &str);
    fn emit_enum(&mut self, name: &str, f: &fn(&mut Self));
    fn emit_enum_variant(&mut self, v_name: &str, v_id: uint, len: uint, f: &fn(&mut Self));
    fn emit_enum_variant_arg(&mut self, a_idx: uint, f: &fn(&mut Self));
    fn emit_enum_struct_variant(&mut self, v_name: &str, v_id: uint, len: uint, f: &fn(&mut Self));
    fn emit_enum_struct_variant_field(&mut self, f_name: &str, f_idx: uint, f: &fn(&mut Self));
    fn emit_struct(&mut self, name: &str, len: uint, f: &fn(&mut Self));
    fn emit_struct_field(&mut self, f_name: &str, f_idx: uint, f: &fn(&mut Self));
    fn emit_tuple(&mut self, len: uint, f: &fn(&mut Self));
    fn emit_tuple_arg(&mut self, idx: uint, f: &fn(&mut Self));
    fn emit_tuple_struct(&mut self, name: &str, len: uint, f: &fn(&mut Self));
    fn emit_tuple_struct_arg(&mut self, f_idx: uint, f: &fn(&mut Self));
    fn emit_option(&mut self, f: &fn(&mut Self));
    fn emit_option_none(&mut self);
    fn emit_option_some(&mut self, f: &fn(&mut Self));
    fn emit_seq(&mut self, len: uint, f: &fn(this: &mut Self));
    fn emit_seq_elt(&mut self, idx: uint, f: &fn(this: &mut Self));
    fn emit_map(&mut self, len: uint, f: &fn(&mut Self));
    fn emit_map_elt_key(&mut self, idx: uint, f: &fn(&mut Self));
    fn emit_map_elt_val(&mut self, idx: uint, f: &fn(&mut Self));
}

Required Methods

fn emit_nil(&mut self)

fn emit_uint(&mut self, v: uint)

fn emit_u64(&mut self, v: u64)

fn emit_u32(&mut self, v: u32)

fn emit_u16(&mut self, v: u16)

fn emit_u8(&mut self, v: u8)

fn emit_int(&mut self, v: int)

fn emit_i64(&mut self, v: i64)

fn emit_i32(&mut self, v: i32)

fn emit_i16(&mut self, v: i16)

fn emit_i8(&mut self, v: i8)

fn emit_bool(&mut self, v: bool)

fn emit_float(&mut self, v: float)

fn emit_f64(&mut self, v: f64)

fn emit_f32(&mut self, v: f32)

fn emit_char(&mut self, v: char)

fn emit_str(&mut self, v: &str)

fn emit_enum(&mut self, name: &str, f: &fn(&mut Self))

fn emit_enum_variant(&mut self, v_name: &str, v_id: uint, len: uint, f: &fn(&mut Self))

fn emit_enum_variant_arg(&mut self, a_idx: uint, f: &fn(&mut Self))

fn emit_enum_struct_variant(&mut self, v_name: &str, v_id: uint, len: uint, f: &fn(&mut Self))

fn emit_enum_struct_variant_field(&mut self, f_name: &str, f_idx: uint, f: &fn(&mut Self))

fn emit_struct(&mut self, name: &str, len: uint, f: &fn(&mut Self))

fn emit_struct_field(&mut self, f_name: &str, f_idx: uint, f: &fn(&mut Self))

fn emit_tuple(&mut self, len: uint, f: &fn(&mut Self))

fn emit_tuple_arg(&mut self, idx: uint, f: &fn(&mut Self))

fn emit_tuple_struct(&mut self, name: &str, len: uint, f: &fn(&mut Self))

fn emit_tuple_struct_arg(&mut self, f_idx: uint, f: &fn(&mut Self))

fn emit_option(&mut self, f: &fn(&mut Self))

fn emit_option_none(&mut self)

fn emit_option_some(&mut self, f: &fn(&mut Self))

fn emit_seq(&mut self, len: uint, f: &fn(this: &mut Self))

fn emit_seq_elt(&mut self, idx: uint, f: &fn(this: &mut Self))

fn emit_map(&mut self, len: uint, f: &fn(&mut Self))

fn emit_map_elt_key(&mut self, idx: uint, f: &fn(&mut Self))

fn emit_map_elt_val(&mut self, idx: uint, f: &fn(&mut Self))

Implementors