[−][src]Trait rustc_ap_serialize::Decoder
Associated Types
type Error
Required methods
fn read_nil(&mut self) -> Result<(), Self::Error>
fn read_usize(&mut self) -> Result<usize, Self::Error>
fn read_u128(&mut self) -> Result<u128, Self::Error>
fn read_u64(&mut self) -> Result<u64, Self::Error>
fn read_u32(&mut self) -> Result<u32, Self::Error>
fn read_u16(&mut self) -> Result<u16, Self::Error>
fn read_u8(&mut self) -> Result<u8, Self::Error>
fn read_isize(&mut self) -> Result<isize, Self::Error>
fn read_i128(&mut self) -> Result<i128, Self::Error>
fn read_i64(&mut self) -> Result<i64, Self::Error>
fn read_i32(&mut self) -> Result<i32, Self::Error>
fn read_i16(&mut self) -> Result<i16, Self::Error>
fn read_i8(&mut self) -> Result<i8, Self::Error>
fn read_bool(&mut self) -> Result<bool, Self::Error>
fn read_f64(&mut self) -> Result<f64, Self::Error>
fn read_f32(&mut self) -> Result<f32, Self::Error>
fn read_char(&mut self) -> Result<char, Self::Error>
fn read_str(&mut self) -> Result<Cow<str>, Self::Error>
fn error(&mut self, err: &str) -> Self::Error
Provided methods
fn read_enum<T, F>(&mut self, _name: &str, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_enum_variant<T, F>(
&mut self,
_names: &[&str],
f: F
) -> Result<T, Self::Error> where
F: FnMut(&mut Self, usize) -> Result<T, Self::Error>,
&mut self,
_names: &[&str],
f: F
) -> Result<T, Self::Error> where
F: FnMut(&mut Self, usize) -> Result<T, Self::Error>,
fn read_enum_variant_arg<T, F>(
&mut self,
_a_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_a_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_enum_struct_variant<T, F>(
&mut self,
names: &[&str],
f: F
) -> Result<T, Self::Error> where
F: FnMut(&mut Self, usize) -> Result<T, Self::Error>,
&mut self,
names: &[&str],
f: F
) -> Result<T, Self::Error> where
F: FnMut(&mut Self, usize) -> Result<T, Self::Error>,
fn read_enum_struct_variant_field<T, F>(
&mut self,
_f_name: &str,
f_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_f_name: &str,
f_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_struct<T, F>(
&mut self,
_s_name: &str,
_len: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_s_name: &str,
_len: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_struct_field<T, F>(
&mut self,
_f_name: &str,
_f_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_f_name: &str,
_f_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_tuple<T, F>(&mut self, _len: usize, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_tuple_arg<T, F>(
&mut self,
_a_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_a_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_tuple_struct<T, F>(
&mut self,
_s_name: &str,
len: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_s_name: &str,
len: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_tuple_struct_arg<T, F>(
&mut self,
a_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
a_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_option<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnMut(&mut Self, bool) -> Result<T, Self::Error>,
F: FnMut(&mut Self, bool) -> Result<T, Self::Error>,
fn read_seq<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self, usize) -> Result<T, Self::Error>,
F: FnOnce(&mut Self, usize) -> Result<T, Self::Error>,
fn read_seq_elt<T, F>(&mut self, _idx: usize, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_map<T, F>(&mut self, f: F) -> Result<T, Self::Error> where
F: FnOnce(&mut Self, usize) -> Result<T, Self::Error>,
F: FnOnce(&mut Self, usize) -> Result<T, Self::Error>,
fn read_map_elt_key<T, F>(
&mut self,
_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
fn read_map_elt_val<T, F>(
&mut self,
_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
&mut self,
_idx: usize,
f: F
) -> Result<T, Self::Error> where
F: FnOnce(&mut Self) -> Result<T, Self::Error>,
Implementors
impl Decoder for rustc_ap_serialize::json::Decoder
[src]
type Error = DecoderError
fn read_nil(&mut self) -> DecodeResult<()>
[src]
fn read_usize(&mut self) -> DecodeResult<usize>
[src]
fn read_u8(&mut self) -> DecodeResult<u8>
[src]
fn read_u16(&mut self) -> DecodeResult<u16>
[src]
fn read_u32(&mut self) -> DecodeResult<u32>
[src]
fn read_u64(&mut self) -> DecodeResult<u64>
[src]
fn read_u128(&mut self) -> DecodeResult<u128>
[src]
fn read_isize(&mut self) -> DecodeResult<isize>
[src]
fn read_i8(&mut self) -> DecodeResult<i8>
[src]
fn read_i16(&mut self) -> DecodeResult<i16>
[src]
fn read_i32(&mut self) -> DecodeResult<i32>
[src]
fn read_i64(&mut self) -> DecodeResult<i64>
[src]
fn read_i128(&mut self) -> DecodeResult<i128>
[src]
fn read_f32(&mut self) -> DecodeResult<f32>
[src]
fn read_f64(&mut self) -> DecodeResult<f64>
[src]
fn read_bool(&mut self) -> DecodeResult<bool>
[src]
fn read_char(&mut self) -> DecodeResult<char>
[src]
fn read_str(&mut self) -> DecodeResult<Cow<str>>
[src]
fn read_enum<T, F>(&mut self, _name: &str, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_enum_variant<T, F>(&mut self, names: &[&str], f: F) -> DecodeResult<T> where
F: FnMut(&mut Decoder, usize) -> DecodeResult<T>,
[src]
F: FnMut(&mut Decoder, usize) -> DecodeResult<T>,
fn read_enum_variant_arg<T, F>(&mut self, _idx: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_enum_struct_variant<T, F>(
&mut self,
names: &[&str],
f: F
) -> DecodeResult<T> where
F: FnMut(&mut Decoder, usize) -> DecodeResult<T>,
[src]
&mut self,
names: &[&str],
f: F
) -> DecodeResult<T> where
F: FnMut(&mut Decoder, 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) -> DecodeResult<T>,
[src]
&mut self,
_name: &str,
idx: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_struct<T, F>(
&mut self,
_name: &str,
_len: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
&mut self,
_name: &str,
_len: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_struct_field<T, F>(
&mut self,
name: &str,
_idx: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
&mut self,
name: &str,
_idx: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_tuple<T, F>(&mut self, tuple_len: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_tuple_arg<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_tuple_struct<T, F>(
&mut self,
_name: &str,
len: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
&mut self,
_name: &str,
len: usize,
f: F
) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_tuple_struct_arg<T, F>(&mut self, idx: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_option<T, F>(&mut self, f: F) -> DecodeResult<T> where
F: FnMut(&mut Decoder, bool) -> DecodeResult<T>,
[src]
F: FnMut(&mut Decoder, bool) -> DecodeResult<T>,
fn read_seq<T, F>(&mut self, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder, usize) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder, usize) -> DecodeResult<T>,
fn read_seq_elt<T, F>(&mut self, _idx: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_map<T, F>(&mut self, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder, usize) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder, usize) -> DecodeResult<T>,
fn read_map_elt_key<T, F>(&mut self, _idx: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
fn read_map_elt_val<T, F>(&mut self, _idx: usize, f: F) -> DecodeResult<T> where
F: FnOnce(&mut Decoder) -> DecodeResult<T>,
[src]
F: FnOnce(&mut Decoder) -> DecodeResult<T>,