Struct value_trait::generator::PrettyGenerator
source · pub struct PrettyGenerator<V: Value> { /* private fields */ }
Expand description
Pretty Generator
Implementations§
Trait Implementations§
source§impl<V: Value> BaseGenerator for PrettyGenerator<V>
impl<V: Value> BaseGenerator for PrettyGenerator<V>
source§fn get_writer(&mut self) -> &mut Vec<u8>
fn get_writer(&mut self) -> &mut Vec<u8>
returns teh writer
source§fn write_string_complex(&mut self, string: &[u8], start: usize) -> Result<()>
fn write_string_complex(&mut self, string: &[u8], start: usize) -> Result<()>
Writes a string with escape sequences Read more
source§fn write_simple_string(&mut self, string: &str) -> Result<()>
fn write_simple_string(&mut self, string: &str) -> Result<()>
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
Auto Trait Implementations§
impl<V> RefUnwindSafe for PrettyGenerator<V>where V: RefUnwindSafe,
impl<V> Send for PrettyGenerator<V>where V: Send,
impl<V> Sync for PrettyGenerator<V>where V: Sync,
impl<V> Unpin for PrettyGenerator<V>where V: Unpin,
impl<V> UnwindSafe for PrettyGenerator<V>where V: UnwindSafe,
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