Struct simd_json::value::generator::PrettyGenerator [−][src]
Pretty Generator
Implementations
impl<V> PrettyGenerator<V> where
V: Value,
[src]
V: Value,
#[must_use]pub fn new(spaces: u16) -> PrettyGenerator<V>
[src]
Creates a new pretty priting generator
#[must_use]pub fn consume(self) -> String
[src]
Returns the data as a String
Trait Implementations
impl<V> BaseGenerator for PrettyGenerator<V> where
V: Value,
[src]
V: Value,
type T = Vec<u8, Global>
The writer
pub fn write(&mut self, slice: &[u8]) -> Result<(), Error>
[src]
pub fn write_char(&mut self, ch: u8) -> Result<(), Error>
[src]
pub fn get_writer(&mut self) -> &mut Vec<u8, Global>ⓘ
[src]
pub fn write_min(&mut self, slice: &[u8], u8) -> Result<(), Error>
[src]
pub fn new_line(&mut self) -> Result<(), Error>
[src]
pub fn indent(&mut self)
[src]
pub fn dedent(&mut self)
[src]
pub fn write_string_complex(
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>
[src]
&mut self,
string: &[u8],
start: usize
) -> Result<(), Error>
pub fn write_string(&mut self, string: &str) -> Result<(), Error>
[src]
pub fn write_string_content(&mut self, string: &str) -> Result<(), Error>
[src]
pub fn write_simple_string(&mut self, string: &str) -> Result<(), Error>
[src]
pub fn write_simple_str_content(&mut self, string: &str) -> Result<(), Error>
[src]
pub fn write_float(&mut self, num: f64) -> Result<(), Error>
[src]
pub fn write_int<I>(&mut self, num: I) -> Result<(), Error> where
I: Integer,
[src]
I: Integer,
pub fn write_int128(&mut self, num: i128) -> Result<(), Error>
[src]
pub fn write_uint(&mut self, num: u64) -> Result<(), Error>
[src]
pub fn write_uint128(&mut self, num: u128) -> Result<(), Error>
[src]
Auto Trait Implementations
impl<V> RefUnwindSafe for PrettyGenerator<V> where
V: RefUnwindSafe,
V: RefUnwindSafe,
impl<V> Send for PrettyGenerator<V> where
V: Send,
V: Send,
impl<V> Sync for PrettyGenerator<V> where
V: Sync,
V: Sync,
impl<V> Unpin for PrettyGenerator<V> where
V: Unpin,
V: Unpin,
impl<V> UnwindSafe for PrettyGenerator<V> where
V: UnwindSafe,
V: 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,
pub 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.
pub 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>,