Struct rustc_serialize::json::Decoder
source · [−]Expand description
A structure to decode JSON to values in rust.
Fields
stack: Vec<Json>Implementations
Trait Implementations
sourceimpl Decoder for Decoder
impl Decoder for Decoder
fn read_unit(&mut self)
fn read_usize(&mut self) -> usize
fn read_u8(&mut self) -> u8
fn read_u16(&mut self) -> u16
fn read_u32(&mut self) -> u32
fn read_u64(&mut self) -> u64
fn read_u128(&mut self) -> u128
fn read_isize(&mut self) -> isize
fn read_i8(&mut self) -> i8
fn read_i16(&mut self) -> i16
fn read_i32(&mut self) -> i32
fn read_i64(&mut self) -> i64
fn read_i128(&mut self) -> i128
fn read_f32(&mut self) -> f32
fn read_f64(&mut self) -> f64
fn read_bool(&mut self) -> bool
fn read_char(&mut self) -> char
fn read_str(&mut self) -> Cow<'_, str>
fn read_raw_bytes_into(&mut self, s: &mut [u8])
fn read_enum<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_enum_variant<T, F>(&mut self, names: &[&str], f: F) -> T where
F: FnMut(&mut Decoder, usize) -> T,
fn read_enum_variant_arg<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_struct<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_struct_field<T, F>(&mut self, name: &str, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_tuple<T, F>(&mut self, tuple_len: usize, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_tuple_arg<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_option<T, F>(&mut self, f: F) -> T where
F: FnMut(&mut Decoder, bool) -> T,
fn read_seq<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder, usize) -> T,
fn read_seq_elt<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_map<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder, usize) -> T,
fn read_map_elt_key<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
fn read_map_elt_val<T, F>(&mut self, f: F) -> T where
F: FnOnce(&mut Decoder) -> T,
Auto Trait Implementations
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes