PrettyJsonFormatter

Struct PrettyJsonFormatter 

Source
pub struct PrettyJsonFormatter { /* private fields */ }

Implementations§

Trait Implementations§

Source§

impl<W: Write> WriteFormatter<W> for PrettyJsonFormatter

Source§

fn write_struct_begin( &mut self, write: &mut W, _name: &str, _fields: usize, ) -> IoResult

Source§

fn write_struct_end(&mut self, write: &mut W, _name: &str) -> IoResult

Source§

fn write_field_assignnment_begin(&mut self, write: &mut W) -> IoResult

Source§

fn write_field_key(&mut self, write: &mut W, name: &str) -> IoResult

Source§

fn write_field_assignnment_operator(&mut self, write: &mut W) -> IoResult

Source§

fn write_field_assignnment_end( &mut self, write: &mut W, pos: &Position, ) -> IoResult

Source§

fn write_collection_begin( &mut self, write: &mut W, _name: &str, _size: usize, ) -> IoResult

Source§

fn write_collection_end(&mut self, write: &mut W, _name: &str) -> IoResult

Source§

fn write_i8(&mut self, write: &mut W, value: &i8) -> IoResult

Source§

fn write_i16(&mut self, write: &mut W, value: &i16) -> IoResult

Source§

fn write_i32(&mut self, write: &mut W, value: &i32) -> IoResult

Source§

fn write_i64(&mut self, write: &mut W, value: &i64) -> IoResult

Source§

fn write_i128(&mut self, write: &mut W, value: &i128) -> IoResult

Source§

fn write_u8(&mut self, write: &mut W, value: &u8) -> IoResult

Source§

fn write_u16(&mut self, write: &mut W, value: &u16) -> IoResult

Source§

fn write_u32(&mut self, write: &mut W, value: &u32) -> IoResult

Source§

fn write_u64(&mut self, write: &mut W, value: &u64) -> IoResult

Source§

fn write_u128(&mut self, write: &mut W, value: &u128) -> IoResult

Source§

fn write_f32(&mut self, write: &mut W, value: &f32) -> IoResult

Source§

fn write_f64(&mut self, write: &mut W, value: &f64) -> IoResult

Source§

fn write_usize(&mut self, write: &mut W, value: &usize) -> IoResult

Source§

fn write_isize(&mut self, write: &mut W, value: &isize) -> IoResult

Source§

fn write_str(&mut self, write: &mut W, value: &str) -> IoResult

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.