[−][src]Struct simd_json::value::generator::DumpGenerator
Simple dump Generator
Methods
impl<VT> DumpGenerator<VT> where
VT: Value,
[src]
VT: Value,
#[must_use]pub fn new() -> DumpGenerator<VT>
[src]
Creates a new generator
#[must_use]pub fn consume(self) -> String
[src]
Returns the data as a String
Trait Implementations
impl<VT> BaseGenerator for DumpGenerator<VT> where
VT: Value,
[src]
VT: Value,
type T = Vec<u8>
The writer
fn write(&mut self, slice: &[u8]) -> Result<(), Error>
[src]
fn write_char(&mut self, ch: u8) -> Result<(), Error>
[src]
fn get_writer(&mut self) -> &mut Vec<u8>
[src]
fn write_min(&mut self, &[u8], min: u8) -> Result<(), Error>
[src]
fn new_line(&mut self) -> Result<(), Error>
[src]
fn indent(&mut self)
[src]
fn dedent(&mut self)
[src]
fn write_string_complex(
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>
[src]
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>
fn write_string(&mut self, string: &str) -> Result<(), Error>
[src]
fn write_simple_string(&mut self, string: &str) -> Result<(), Error>
[src]
fn write_float(&mut self, num: f64) -> Result<(), Error>
[src]
fn write_int<I>(&mut self, num: I) -> Result<(), Error> where
I: Integer,
[src]
I: Integer,
fn write_int128(&mut self, num: i128) -> Result<(), Error>
[src]
fn write_uint(&mut self, num: u64) -> Result<(), Error>
[src]
fn write_uint128(&mut self, num: u128) -> Result<(), Error>
[src]
impl<VT> Default for DumpGenerator<VT> where
VT: Value,
[src]
VT: Value,
fn default() -> DumpGenerator<VT>
[src]
Auto Trait Implementations
impl<VT> RefUnwindSafe for DumpGenerator<VT> where
VT: RefUnwindSafe,
VT: RefUnwindSafe,
impl<VT> Send for DumpGenerator<VT> where
VT: Send,
VT: Send,
impl<VT> Sync for DumpGenerator<VT> where
VT: Sync,
VT: Sync,
impl<VT> Unpin for DumpGenerator<VT> where
VT: Unpin,
VT: Unpin,
impl<VT> UnwindSafe for DumpGenerator<VT> where
VT: UnwindSafe,
VT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,