[−][src]Struct serialize::json::Encoder
A structure for implementing serialization to JSON.
Methods
impl<'a> Encoder<'a>
[src]
impl<'a> Encoder<'a>
pub fn new(writer: &'a mut dyn Write) -> Encoder<'a> | [src] |
Creates a new JSON encoder whose output will be written to the writer specified.
Trait Implementations
impl<'a> Encoder for Encoder<'a>
[src]
impl<'a> Encoder for Encoder<'a>
type Error = EncoderError
fn emit_unit(&mut self) -> EncodeResult | [src] |
fn emit_usize(&mut self, v: usize) -> EncodeResult | [src] |
fn emit_u128(&mut self, v: u128) -> EncodeResult | [src] |
fn emit_u64(&mut self, v: u64) -> EncodeResult | [src] |
fn emit_u32(&mut self, v: u32) -> EncodeResult | [src] |
fn emit_u16(&mut self, v: u16) -> EncodeResult | [src] |
fn emit_u8(&mut self, v: u8) -> EncodeResult | [src] |
fn emit_isize(&mut self, v: isize) -> EncodeResult | [src] |
fn emit_i128(&mut self, v: i128) -> EncodeResult | [src] |
fn emit_i64(&mut self, v: i64) -> EncodeResult | [src] |
fn emit_i32(&mut self, v: i32) -> EncodeResult | [src] |
fn emit_i16(&mut self, v: i16) -> EncodeResult | [src] |
fn emit_i8(&mut self, v: i8) -> EncodeResult | [src] |
fn emit_bool(&mut self, v: bool) -> EncodeResult | [src] |
fn emit_f64(&mut self, v: f64) -> EncodeResult | [src] |
fn emit_f32(&mut self, v: f32) -> EncodeResult | [src] |
fn emit_char(&mut self, v: char) -> EncodeResult | [src] |
fn emit_str(&mut self, v: &str) -> EncodeResult | [src] |
fn emit_enum<F>(&mut self, _name: &str, f: F) -> EncodeResult where | [src] |
fn emit_enum_variant<F>( | [src] |
fn emit_enum_variant_arg<F>(&mut self, idx: usize, f: F) -> EncodeResult where | [src] |
fn emit_enum_struct_variant<F>( | [src] |
fn emit_enum_struct_variant_field<F>( | [src] |
fn emit_struct<F>(&mut self, _: &str, _: usize, f: F) -> EncodeResult where | [src] |
fn emit_struct_field<F>(&mut self, name: &str, idx: usize, f: F) -> EncodeResult where | [src] |
fn emit_tuple<F>(&mut self, len: usize, f: F) -> EncodeResult where | [src] |
fn emit_tuple_arg<F>(&mut self, idx: usize, f: F) -> EncodeResult where | [src] |
fn emit_tuple_struct<F>( | [src] |
fn emit_tuple_struct_arg<F>(&mut self, idx: usize, f: F) -> EncodeResult where | [src] |
fn emit_option<F>(&mut self, f: F) -> EncodeResult where | [src] |
fn emit_option_none(&mut self) -> EncodeResult | [src] |
fn emit_option_some<F>(&mut self, f: F) -> EncodeResult where | [src] |
fn emit_seq<F>(&mut self, _len: usize, f: F) -> EncodeResult where | [src] |
fn emit_seq_elt<F>(&mut self, idx: usize, f: F) -> EncodeResult where | [src] |
fn emit_map<F>(&mut self, _len: usize, f: F) -> EncodeResult where | [src] |
fn emit_map_elt_key<F>(&mut self, idx: usize, f: F) -> EncodeResult where | [src] |
fn emit_map_elt_val<F>(&mut self, _idx: usize, f: F) -> EncodeResult where | [src] |
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src]
impl<T> From for T
impl<T, U> Into for T where
U: From<T>,
[src]
impl<T, U> Into for T where
U: From<T>,
impl<T, U> TryFrom for T where
T: From<U>,
[src]
impl<T, U> TryFrom for T where
T: From<U>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error> | [src] |
impl<T> Borrow for T where
T: ?Sized,
[src]
impl<T> Borrow for T where
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
impl<T> BorrowMut for T where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T | [src] |
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error> | [src] |
impl<T> Any for T where
T: 'static + ?Sized,
[src]
impl<T> Any for T where
T: 'static + ?Sized,
fn get_type_id(&self) -> TypeId | [src] |