Struct rbml::reader::Decoder
[−]
[src]
pub struct Decoder<'a> { // some fields omitted }
Unstable (
rustc_private
)pub struct Decoder<'a> { // some fields omitted }
rustc_private
)impl<'doc> Decoder<'doc>
[src]fn new(d: Doc<'doc>) -> Decoder<'doc>
fn read_opaque<R, F>(&mut self, op: F) -> DecodeResult<R> where F: FnOnce(&mut Decoder, Doc) -> DecodeResult<R>
fn position(&self) -> usize
fn advance(&mut self, bytes: usize)
impl<'doc> Decoder for Decoder<'doc>
[src]type Error = Error
fn read_nil(&mut self) -> DecodeResult<()>
fn read_u64(&mut self) -> DecodeResult<u64>
fn read_u32(&mut self) -> DecodeResult<u32>
fn read_u16(&mut self) -> DecodeResult<u16>
fn read_u8(&mut self) -> DecodeResult<u8>
fn read_uint(&mut self) -> DecodeResult<usize>
fn read_i64(&mut self) -> DecodeResult<i64>
fn read_i32(&mut self) -> DecodeResult<i32>
fn read_i16(&mut self) -> DecodeResult<i16>
fn read_i8(&mut self) -> DecodeResult<i8>
fn read_int(&mut self) -> DecodeResult<isize>
fn read_bool(&mut self) -> DecodeResult<bool>
fn read_f64(&mut self) -> DecodeResult<f64>
fn read_f32(&mut self) -> DecodeResult<f32>
fn read_char(&mut self) -> DecodeResult<char>
fn read_str(&mut self) -> DecodeResult<String>
fn read_enum<T, F>(&mut self, name: &str, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_enum_variant<T, F>(&mut self, _: &[&str], f: F) -> DecodeResult<T> where F: FnMut(&mut Decoder<'doc>, usize) -> DecodeResult<T>
fn read_enum_variant_arg<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_enum_struct_variant<T, F>(&mut self, _: &[&str], f: F) -> DecodeResult<T> where F: FnMut(&mut Decoder<'doc>, usize) -> DecodeResult<T>
fn read_enum_struct_variant_field<T, F>(&mut self, name: &str, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_struct<T, F>(&mut self, name: &str, _: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_struct_field<T, F>(&mut self, name: &str, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_tuple<T, F>(&mut self, tuple_len: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_tuple_arg<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_tuple_struct<T, F>(&mut self, name: &str, len: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_tuple_struct_arg<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_option<T, F>(&mut self, f: F) -> DecodeResult<T> where F: FnMut(&mut Decoder<'doc>, bool) -> DecodeResult<T>
fn read_seq<T, F>(&mut self, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>, usize) -> DecodeResult<T>
fn read_seq_elt<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_map<T, F>(&mut self, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>, usize) -> DecodeResult<T>
fn read_map_elt_key<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn read_map_elt_val<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where F: FnOnce(&mut Decoder<'doc>) -> DecodeResult<T>
fn error(&mut self, err: &str) -> Error