Trait erased_serde_json::ser::Formatter
[−]
[src]
pub trait Formatter { fn erased_write_null(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_write_bool(
&mut self,
writer: &mut Write,
value: bool
) -> Result<(), Error>; fn erased_write_i8(
&mut self,
writer: &mut Write,
value: i8
) -> Result<(), Error>; fn erased_write_i16(
&mut self,
writer: &mut Write,
value: i16
) -> Result<(), Error>; fn erased_write_i32(
&mut self,
writer: &mut Write,
value: i32
) -> Result<(), Error>; fn erased_write_i64(
&mut self,
writer: &mut Write,
value: i64
) -> Result<(), Error>; fn erased_write_u8(
&mut self,
writer: &mut Write,
value: u8
) -> Result<(), Error>; fn erased_write_u16(
&mut self,
writer: &mut Write,
value: u16
) -> Result<(), Error>; fn erased_write_u32(
&mut self,
writer: &mut Write,
value: u32
) -> Result<(), Error>; fn erased_write_u64(
&mut self,
writer: &mut Write,
value: u64
) -> Result<(), Error>; fn erased_write_f32(
&mut self,
writer: &mut Write,
value: f32
) -> Result<(), Error>; fn erased_write_f64(
&mut self,
writer: &mut Write,
value: f64
) -> Result<(), Error>; fn erased_begin_string(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_end_string(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_write_string_fragment(
&mut self,
writer: &mut Write,
fragment: &str
) -> Result<(), Error>; fn erased_write_char_escape(
&mut self,
writer: &mut Write,
char_escape: CharEscape
) -> Result<(), Error>; fn erased_begin_array(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_end_array(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_begin_array_value(
&mut self,
writer: &mut Write,
first: bool
) -> Result<(), Error>; fn erased_end_array_value(
&mut self,
writer: &mut Write
) -> Result<(), Error>; fn erased_begin_object(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_end_object(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_begin_object_key(
&mut self,
writer: &mut Write,
first: bool
) -> Result<(), Error>; fn erased_end_object_key(&mut self, writer: &mut Write) -> Result<(), Error>; fn erased_begin_object_value(
&mut self,
writer: &mut Write
) -> Result<(), Error>; fn erased_end_object_value(
&mut self,
writer: &mut Write
) -> Result<(), Error>; }
Required Methods
fn erased_write_null(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_write_bool(
&mut self,
writer: &mut Write,
value: bool
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: bool
) -> Result<(), Error>
fn erased_write_i8(
&mut self,
writer: &mut Write,
value: i8
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: i8
) -> Result<(), Error>
fn erased_write_i16(
&mut self,
writer: &mut Write,
value: i16
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: i16
) -> Result<(), Error>
fn erased_write_i32(
&mut self,
writer: &mut Write,
value: i32
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: i32
) -> Result<(), Error>
fn erased_write_i64(
&mut self,
writer: &mut Write,
value: i64
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: i64
) -> Result<(), Error>
fn erased_write_u8(
&mut self,
writer: &mut Write,
value: u8
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: u8
) -> Result<(), Error>
fn erased_write_u16(
&mut self,
writer: &mut Write,
value: u16
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: u16
) -> Result<(), Error>
fn erased_write_u32(
&mut self,
writer: &mut Write,
value: u32
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: u32
) -> Result<(), Error>
fn erased_write_u64(
&mut self,
writer: &mut Write,
value: u64
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: u64
) -> Result<(), Error>
fn erased_write_f32(
&mut self,
writer: &mut Write,
value: f32
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: f32
) -> Result<(), Error>
fn erased_write_f64(
&mut self,
writer: &mut Write,
value: f64
) -> Result<(), Error>
&mut self,
writer: &mut Write,
value: f64
) -> Result<(), Error>
fn erased_begin_string(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_end_string(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_write_string_fragment(
&mut self,
writer: &mut Write,
fragment: &str
) -> Result<(), Error>
&mut self,
writer: &mut Write,
fragment: &str
) -> Result<(), Error>
fn erased_write_char_escape(
&mut self,
writer: &mut Write,
char_escape: CharEscape
) -> Result<(), Error>
&mut self,
writer: &mut Write,
char_escape: CharEscape
) -> Result<(), Error>
fn erased_begin_array(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_end_array(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_begin_array_value(
&mut self,
writer: &mut Write,
first: bool
) -> Result<(), Error>
&mut self,
writer: &mut Write,
first: bool
) -> Result<(), Error>
fn erased_end_array_value(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_begin_object(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_end_object(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_begin_object_key(
&mut self,
writer: &mut Write,
first: bool
) -> Result<(), Error>
&mut self,
writer: &mut Write,
first: bool
) -> Result<(), Error>
fn erased_end_object_key(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_begin_object_value(&mut self, writer: &mut Write) -> Result<(), Error>
fn erased_end_object_value(&mut self, writer: &mut Write) -> Result<(), Error>
Trait Implementations
impl<'a> Formatter for Formatter
[src]
fn write_null<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Writes a null
value to the specified writer.
fn write_bool<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
Writes a true
or false
value to the specified writer.
fn write_i8<W: ?Sized + Write>(&mut self, w: &mut W, v: i8) -> Result<(), Error>
[src]
Writes an integer value like -123
to the specified writer.
fn write_i16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_u8<W: ?Sized + Write>(&mut self, w: &mut W, v: u8) -> Result<(), Error>
[src]
Writes an integer value like 123
to the specified writer.
fn write_u16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_f32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn write_f64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn begin_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn end_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn write_string_fragment<W: ?Sized + Write>(
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
Writes a string fragment that doesn't need any escaping to the specified writer. Read more
fn write_char_escape<W: ?Sized + Write>(
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
Writes a character escape code to the specified writer.
fn begin_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every array. Writes a [
to the specified writer. Read more
fn end_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array. Writes a ]
to the specified writer. Read more
fn begin_array_value<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every array value. Writes a ,
if needed to the specified writer. Read more
fn end_array_value<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array value.
fn begin_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every object. Writes a {
to the specified writer. Read more
fn end_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object. Writes a }
to the specified writer. Read more
fn begin_object_key<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every object key.
fn end_object_key<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object key. A :
should be written to the specified writer by either this method or begin_object_value
. Read more
fn begin_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called before every object value. A :
should be written to the specified writer by either this method or end_object_key
. Read more
fn end_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called after every object value.
impl<'a> Formatter for &'a mut Formatter
[src]
fn write_null<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Writes a null
value to the specified writer.
fn write_bool<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
Writes a true
or false
value to the specified writer.
fn write_i8<W: ?Sized + Write>(&mut self, w: &mut W, v: i8) -> Result<(), Error>
[src]
Writes an integer value like -123
to the specified writer.
fn write_i16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_u8<W: ?Sized + Write>(&mut self, w: &mut W, v: u8) -> Result<(), Error>
[src]
Writes an integer value like 123
to the specified writer.
fn write_u16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_f32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn write_f64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn begin_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn end_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn write_string_fragment<W: ?Sized + Write>(
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
Writes a string fragment that doesn't need any escaping to the specified writer. Read more
fn write_char_escape<W: ?Sized + Write>(
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
Writes a character escape code to the specified writer.
fn begin_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every array. Writes a [
to the specified writer. Read more
fn end_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array. Writes a ]
to the specified writer. Read more
fn begin_array_value<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every array value. Writes a ,
if needed to the specified writer. Read more
fn end_array_value<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array value.
fn begin_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every object. Writes a {
to the specified writer. Read more
fn end_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object. Writes a }
to the specified writer. Read more
fn begin_object_key<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every object key.
fn end_object_key<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object key. A :
should be written to the specified writer by either this method or begin_object_value
. Read more
fn begin_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called before every object value. A :
should be written to the specified writer by either this method or end_object_key
. Read more
fn end_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called after every object value.
impl<'a> Formatter for &'a mut (Formatter + Send)
[src]
fn write_null<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Writes a null
value to the specified writer.
fn write_bool<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
Writes a true
or false
value to the specified writer.
fn write_i8<W: ?Sized + Write>(&mut self, w: &mut W, v: i8) -> Result<(), Error>
[src]
Writes an integer value like -123
to the specified writer.
fn write_i16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_u8<W: ?Sized + Write>(&mut self, w: &mut W, v: u8) -> Result<(), Error>
[src]
Writes an integer value like 123
to the specified writer.
fn write_u16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_f32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn write_f64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn begin_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn end_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn write_string_fragment<W: ?Sized + Write>(
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
Writes a string fragment that doesn't need any escaping to the specified writer. Read more
fn write_char_escape<W: ?Sized + Write>(
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
Writes a character escape code to the specified writer.
fn begin_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every array. Writes a [
to the specified writer. Read more
fn end_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array. Writes a ]
to the specified writer. Read more
fn begin_array_value<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every array value. Writes a ,
if needed to the specified writer. Read more
fn end_array_value<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array value.
fn begin_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every object. Writes a {
to the specified writer. Read more
fn end_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object. Writes a }
to the specified writer. Read more
fn begin_object_key<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every object key.
fn end_object_key<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object key. A :
should be written to the specified writer by either this method or begin_object_value
. Read more
fn begin_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called before every object value. A :
should be written to the specified writer by either this method or end_object_key
. Read more
fn end_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called after every object value.
impl<'a> Formatter for &'a mut (Formatter + Sync)
[src]
fn write_null<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Writes a null
value to the specified writer.
fn write_bool<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
Writes a true
or false
value to the specified writer.
fn write_i8<W: ?Sized + Write>(&mut self, w: &mut W, v: i8) -> Result<(), Error>
[src]
Writes an integer value like -123
to the specified writer.
fn write_i16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_u8<W: ?Sized + Write>(&mut self, w: &mut W, v: u8) -> Result<(), Error>
[src]
Writes an integer value like 123
to the specified writer.
fn write_u16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_f32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn write_f64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn begin_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn end_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn write_string_fragment<W: ?Sized + Write>(
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
Writes a string fragment that doesn't need any escaping to the specified writer. Read more
fn write_char_escape<W: ?Sized + Write>(
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
Writes a character escape code to the specified writer.
fn begin_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every array. Writes a [
to the specified writer. Read more
fn end_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array. Writes a ]
to the specified writer. Read more
fn begin_array_value<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every array value. Writes a ,
if needed to the specified writer. Read more
fn end_array_value<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array value.
fn begin_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every object. Writes a {
to the specified writer. Read more
fn end_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object. Writes a }
to the specified writer. Read more
fn begin_object_key<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every object key.
fn end_object_key<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object key. A :
should be written to the specified writer by either this method or begin_object_value
. Read more
fn begin_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called before every object value. A :
should be written to the specified writer by either this method or end_object_key
. Read more
fn end_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called after every object value.
impl<'a> Formatter for &'a mut (Formatter + Send + Sync)
[src]
fn write_null<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Writes a null
value to the specified writer.
fn write_bool<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: bool
) -> Result<(), Error>
Writes a true
or false
value to the specified writer.
fn write_i8<W: ?Sized + Write>(&mut self, w: &mut W, v: i8) -> Result<(), Error>
[src]
Writes an integer value like -123
to the specified writer.
fn write_i16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i16
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i32
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_i64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: i64
) -> Result<(), Error>
Writes an integer value like -123
to the specified writer.
fn write_u8<W: ?Sized + Write>(&mut self, w: &mut W, v: u8) -> Result<(), Error>
[src]
Writes an integer value like 123
to the specified writer.
fn write_u16<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u16
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u32
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_u64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: u64
) -> Result<(), Error>
Writes an integer value like 123
to the specified writer.
fn write_f32<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f32
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn write_f64<W: ?Sized + Write>(
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
v: f64
) -> Result<(), Error>
Writes a floating point value like -31.26e+12
to the specified writer.
fn begin_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn end_string<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after each series of write_string_fragment
and write_char_escape
. Writes a "
to the specified writer. Read more
fn write_string_fragment<W: ?Sized + Write>(
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
fragment: &str
) -> Result<(), Error>
Writes a string fragment that doesn't need any escaping to the specified writer. Read more
fn write_char_escape<W: ?Sized + Write>(
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
char_escape: CharEscape
) -> Result<(), Error>
Writes a character escape code to the specified writer.
fn begin_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every array. Writes a [
to the specified writer. Read more
fn end_array<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array. Writes a ]
to the specified writer. Read more
fn begin_array_value<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every array value. Writes a ,
if needed to the specified writer. Read more
fn end_array_value<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every array value.
fn begin_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called before every object. Writes a {
to the specified writer. Read more
fn end_object<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object. Writes a }
to the specified writer. Read more
fn begin_object_key<W: ?Sized + Write>(
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
[src]
&mut self,
w: &mut W,
first: bool
) -> Result<(), Error>
Called before every object key.
fn end_object_key<W: ?Sized + Write>(&mut self, w: &mut W) -> Result<(), Error>
[src]
Called after every object key. A :
should be written to the specified writer by either this method or begin_object_value
. Read more
fn begin_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called before every object value. A :
should be written to the specified writer by either this method or end_object_key
. Read more
fn end_object_value<W: ?Sized + Write>(
&mut self,
w: &mut W
) -> Result<(), Error>
[src]
&mut self,
w: &mut W
) -> Result<(), Error>
Called after every object value.
Implementors
impl<T> Formatter for T where
T: Formatter,