[src]

Trait serialize::Decoder

pub trait Decoder<E> {
    fn read_nil(&mut self) -> Result<(), E>;
    fn read_uint(&mut self) -> Result<uint, E>;
    fn read_u64(&mut self) -> Result<u64, E>;
    fn read_u32(&mut self) -> Result<u32, E>;
    fn read_u16(&mut self) -> Result<u16, E>;
    fn read_u8(&mut self) -> Result<u8, E>;
    fn read_int(&mut self) -> Result<int, E>;
    fn read_i64(&mut self) -> Result<i64, E>;
    fn read_i32(&mut self) -> Result<i32, E>;
    fn read_i16(&mut self) -> Result<i16, E>;
    fn read_i8(&mut self) -> Result<i8, E>;
    fn read_bool(&mut self) -> Result<bool, E>;
    fn read_f64(&mut self) -> Result<f64, E>;
    fn read_f32(&mut self) -> Result<f32, E>;
    fn read_char(&mut self) -> Result<char, E>;
    fn read_str(&mut self) -> Result<~str, E>;
    fn read_enum<T>(&mut self, name: &str, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_enum_variant<T>(&mut self, names: &[&str], f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>;
    fn read_enum_variant_arg<T>(&mut self, a_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_enum_struct_variant<T>(&mut self, names: &[&str], f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>;
    fn read_enum_struct_variant_field<T>(&mut self, f_name: &str, f_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_struct<T>(&mut self, s_name: &str, len: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_struct_field<T>(&mut self, f_name: &str, f_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_tuple<T>(&mut self, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>;
    fn read_tuple_arg<T>(&mut self, a_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_tuple_struct<T>(&mut self, s_name: &str, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>;
    fn read_tuple_struct_arg<T>(&mut self, a_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_option<T>(&mut self, f: |&mut Self, bool| -> Result<T, E>) -> Result<T, E>;
    fn read_seq<T>(&mut self, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>;
    fn read_seq_elt<T>(&mut self, idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_map<T>(&mut self, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>;
    fn read_map_elt_key<T>(&mut self, idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
    fn read_map_elt_val<T>(&mut self, idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>;
}

Required Methods

fn read_nil(&mut self) -> Result<(), E>

fn read_uint(&mut self) -> Result<uint, E>

fn read_u64(&mut self) -> Result<u64, E>

fn read_u32(&mut self) -> Result<u32, E>

fn read_u16(&mut self) -> Result<u16, E>

fn read_u8(&mut self) -> Result<u8, E>

fn read_int(&mut self) -> Result<int, E>

fn read_i64(&mut self) -> Result<i64, E>

fn read_i32(&mut self) -> Result<i32, E>

fn read_i16(&mut self) -> Result<i16, E>

fn read_i8(&mut self) -> Result<i8, E>

fn read_bool(&mut self) -> Result<bool, E>

fn read_f64(&mut self) -> Result<f64, E>

fn read_f32(&mut self) -> Result<f32, E>

fn read_char(&mut self) -> Result<char, E>

fn read_str(&mut self) -> Result<~str, E>

fn read_enum<T>(&mut self, name: &str, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_enum_variant<T>(&mut self, names: &[&str], f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>

fn read_enum_variant_arg<T>(&mut self, a_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_enum_struct_variant<T>(&mut self, names: &[&str], f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>

fn read_enum_struct_variant_field<T>(&mut self, f_name: &str, f_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_struct<T>(&mut self, s_name: &str, len: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_struct_field<T>(&mut self, f_name: &str, f_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_tuple<T>(&mut self, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>

fn read_tuple_arg<T>(&mut self, a_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_tuple_struct<T>(&mut self, s_name: &str, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>

fn read_tuple_struct_arg<T>(&mut self, a_idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_option<T>(&mut self, f: |&mut Self, bool| -> Result<T, E>) -> Result<T, E>

fn read_seq<T>(&mut self, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>

fn read_seq_elt<T>(&mut self, idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_map<T>(&mut self, f: |&mut Self, uint| -> Result<T, E>) -> Result<T, E>

fn read_map_elt_key<T>(&mut self, idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

fn read_map_elt_val<T>(&mut self, idx: uint, f: |&mut Self| -> Result<T, E>) -> Result<T, E>

Implementors