pub struct PrettyGenerator { /* private fields */ }
Expand description
Pretty Generator
Implementations§
Trait Implementations§
Source§impl BaseGenerator for PrettyGenerator
impl BaseGenerator for PrettyGenerator
Source§fn write_min(&mut self, slice: &[u8], _: u8) -> Result<(), Error>
fn write_min(&mut self, slice: &[u8], _: u8) -> Result<(), Error>
write with minimum Read more
Source§fn write_string_content(&mut self, string: &str) -> Result<(), Error>
fn write_string_content(&mut self, string: &str) -> Result<(), Error>
writes a string Read more
Source§fn write_simple_string(&mut self, string: &str) -> Result<(), Error>
fn write_simple_string(&mut self, string: &str) -> Result<(), Error>
writes a simple string (usually short and non escaped)
This means we can skip the simd accelerated writing which is
expensive on short strings. Read more
Source§fn write_simple_str_content(&mut self, string: &str) -> Result<(), Error>
fn write_simple_str_content(&mut self, string: &str) -> Result<(), Error>
writes a simple string content (usually short and non escaped)
This means we can skip the simd accelerated writing which is
expensive on short strings. Read more
Auto Trait Implementations§
impl Freeze for PrettyGenerator
impl RefUnwindSafe for PrettyGenerator
impl Send for PrettyGenerator
impl Sync for PrettyGenerator
impl Unpin for PrettyGenerator
impl UnwindSafe for PrettyGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more