pub struct WriterGenerator<'w, W: 'w + Write> { /* private fields */ }
Expand description
Writer Generator
Implementations§
Trait Implementations§
source§impl<'w, W> BaseGenerator for WriterGenerator<'w, W>where
W: Write,
impl<'w, W> BaseGenerator for WriterGenerator<'w, W>where
W: Write,
source§fn get_writer(&mut self) -> &mut W
fn get_writer(&mut self) -> &mut W
returns the writer
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<'w, W> Freeze for WriterGenerator<'w, W>
impl<'w, W> RefUnwindSafe for WriterGenerator<'w, W>where
W: RefUnwindSafe,
impl<'w, W> Send for WriterGenerator<'w, W>where
W: Send,
impl<'w, W> Sync for WriterGenerator<'w, W>where
W: Sync,
impl<'w, W> Unpin for WriterGenerator<'w, W>
impl<'w, W> !UnwindSafe for WriterGenerator<'w, W>
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