Struct simd_json::value::generator::WriterGenerator
source · pub struct WriterGenerator<'w, W, V>where
W: 'w + Write,
V: Value,{ /* private fields */ }
Expand description
Writer Generator
Implementations§
source§impl<'w, W, V> WriterGenerator<'w, W, V>where
W: 'w + Write,
V: Value,
impl<'w, W, V> WriterGenerator<'w, W, V>where W: 'w + Write, V: Value,
sourcepub fn new(writer: &'w mut W) -> WriterGenerator<'w, W, V>
pub fn new(writer: &'w mut W) -> WriterGenerator<'w, W, V>
Creates a new generator
Trait Implementations§
source§impl<'w, W, V> BaseGenerator for WriterGenerator<'w, W, V>where
W: Write,
V: Value,
impl<'w, W, V> BaseGenerator for WriterGenerator<'w, W, V>where W: Write, V: Value,
source§fn get_writer(&mut self) -> &mut W
fn get_writer(&mut self) -> &mut W
returns teh writer
source§fn write_string_complex(
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>
fn write_string_complex( &mut self, string: &[u8], start: usize ) -> Result<(), Error>
Writes a string with escape sequences 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<'w, W, V> RefUnwindSafe for WriterGenerator<'w, W, V>where V: RefUnwindSafe, W: RefUnwindSafe,
impl<'w, W, V> Send for WriterGenerator<'w, W, V>where V: Send, W: Send,
impl<'w, W, V> Sync for WriterGenerator<'w, W, V>where V: Sync, W: Sync,
impl<'w, W, V> Unpin for WriterGenerator<'w, W, V>where V: Unpin,
impl<'w, W, V> !UnwindSafe for WriterGenerator<'w, W, V>
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