Struct simd_json::value::generator::PrettyWriterGenerator [−][src]
Expand description
Pretty Writer Generator
Implementations
impl<'w, W, V> PrettyWriterGenerator<'w, W, V> where
V: Value,
W: 'w + Write, [src]
impl<'w, W, V> PrettyWriterGenerator<'w, W, V> where
V: Value,
W: 'w + Write, [src]pub fn new(
writer: &'w mut W,
spaces_per_indent: u16
) -> PrettyWriterGenerator<'w, W, V>[src]
pub fn new(
writer: &'w mut W,
spaces_per_indent: u16
) -> PrettyWriterGenerator<'w, W, V>[src]Creates a new generator
Trait Implementations
impl<'w, W, V> BaseGenerator for PrettyWriterGenerator<'w, W, V> where
V: Value,
W: Write, [src]
impl<'w, W, V> BaseGenerator for PrettyWriterGenerator<'w, W, V> where
V: Value,
W: Write, [src]type T = W
type T = WThe writer
pub fn get_writer(&mut self) -> &mut W[src]
pub fn get_writer(&mut self) -> &mut W[src]returns teh writer
fn write_string_complex(
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>[src]
fn write_string_complex(
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>[src]Writes a string with escape sequences Read more
fn write_simple_string(&mut self, string: &str) -> Result<(), Error>[src]
fn write_simple_string(&mut self, string: &str) -> Result<(), Error>[src]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
fn write_simple_str_content(&mut self, string: &str) -> Result<(), Error>[src]
fn write_simple_str_content(&mut self, string: &str) -> Result<(), Error>[src]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
fn write_int<I>(&mut self, num: I) -> Result<(), Error> where
I: Integer, [src]
fn write_int<I>(&mut self, num: I) -> Result<(), Error> where
I: Integer, [src]writes an integer value Read more
fn write_int128(&mut self, num: i128) -> Result<(), Error>[src]
fn write_int128(&mut self, num: i128) -> Result<(), Error>[src]👎 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,
V: RefUnwindSafe,
W: RefUnwindSafe,
impl<'w, W, V> Send for PrettyWriterGenerator<'w, W, V> where
V: Send,
W: Send,
V: Send,
W: Send,
impl<'w, W, V> Sync for PrettyWriterGenerator<'w, W, V> where
V: Sync,
W: Sync,
V: Sync,
W: Sync,
impl<'w, W, V> Unpin for PrettyWriterGenerator<'w, W, V> where
V: Unpin,
V: Unpin,