pub trait Decoder {
type Error;
fn read_nil(&mut self) -> Result<(), Error>;
fn read_usize(&mut self) -> Result<usize, Error>;
fn read_u64(&mut self) -> Result<u64, Error>;
fn read_u32(&mut self) -> Result<u32, Error>;
fn read_u16(&mut self) -> Result<u16, Error>;
fn read_u8(&mut self) -> Result<u8, Error>;
fn read_isize(&mut self) -> Result<isize, Error>;
fn read_i64(&mut self) -> Result<i64, Error>;
fn read_i32(&mut self) -> Result<i32, Error>;
fn read_i16(&mut self) -> Result<i16, Error>;
fn read_i8(&mut self) -> Result<i8, Error>;
fn read_bool(&mut self) -> Result<bool, Error>;
fn read_f64(&mut self) -> Result<f64, Error>;
fn read_f32(&mut self) -> Result<f32, Error>;
fn read_char(&mut self) -> Result<char, Error>;
fn read_str(&mut self) -> Result<String, Error>;
fn read_enum<T, F>(&mut self, name: &str, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_enum_variant<T, F>(&mut self, names: &[&str], f: F) -> Result<T, Error> where F: FnMut(&mut Self, usize) -> Result<T, Error>;
fn read_enum_variant_arg<T, F>(&mut self, a_idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_enum_struct_variant<T, F>(&mut self, names: &[&str], f: F) -> Result<T, Error> where F: FnMut(&mut Self, usize) -> Result<T, Error>;
fn read_enum_struct_variant_field<T, F>(&mut self, f_name: &str, f_idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_struct<T, F>(&mut self, s_name: &str, len: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_struct_field<T, F>(&mut self, f_name: &str, f_idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_tuple<T, F>(&mut self, len: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_tuple_arg<T, F>(&mut self, a_idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_tuple_struct<T, F>(&mut self, s_name: &str, len: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_tuple_struct_arg<T, F>(&mut self, a_idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_option<T, F>(&mut self, f: F) -> Result<T, Error> where F: FnMut(&mut Self, bool) -> Result<T, Error>;
fn read_seq<T, F>(&mut self, f: F) -> Result<T, Error> where F: FnOnce(&mut Self, usize) -> Result<T, Error>;
fn read_seq_elt<T, F>(&mut self, idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_map<T, F>(&mut self, f: F) -> Result<T, Error> where F: FnOnce(&mut Self, usize) -> Result<T, Error>;
fn read_map_elt_key<T, F>(&mut self, idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn read_map_elt_val<T, F>(&mut self, idx: usize, f: F) -> Result<T, Error> where F: FnOnce(&mut Self) -> Result<T, Error>;
fn error(&mut self, err: &str) -> Error;
}
Associated Types
Required Methods
Implementors