Struct value_trait::generator::PrettyWriterGenerator
source · [−]Expand description
Pretty Writer Generator
Implementations
Trait Implementations
sourceimpl<'w, W, V> BaseGenerator for PrettyWriterGenerator<'w, W, V> where
W: Write,
V: Value,
impl<'w, W, V> BaseGenerator for PrettyWriterGenerator<'w, W, V> where
W: Write,
V: Value,
type T = W
type T = W
The writer
sourcefn get_writer(&mut self) -> &mut W
fn get_writer(&mut self) -> &mut W
returns teh writer
sourcefn 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
sourcefn 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
sourcefn write_simple_str_content(&mut self, string: &str) -> Result<()>
fn write_simple_str_content(&mut self, string: &str) -> Result<()>
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
sourcefn write_int128(&mut self, num: i128) -> Result<()>
fn write_int128(&mut self, num: i128) -> Result<()>
👎 Deprecated since 0.1.5:
Please use the write_int function instead
writes an integer 128 bit Read more
Auto Trait Implementations
impl<'w, W, V> RefUnwindSafe for PrettyWriterGenerator<'w, W, V> where
V: RefUnwindSafe,
W: RefUnwindSafe,
impl<'w, W, V> Send for PrettyWriterGenerator<'w, W, V> where
V: Send,
W: Send,
impl<'w, W, V> Sync for PrettyWriterGenerator<'w, W, V> where
V: Sync,
W: Sync,
impl<'w, W, V> Unpin for PrettyWriterGenerator<'w, W, V> where
V: Unpin,
impl<'w, W, V> !UnwindSafe for PrettyWriterGenerator<'w, W, V>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more