Trait simd_json::value::prelude::Writable [−][src]
pub trait Writable {
#[must_use]
fn encode(&self) -> String;
#[must_use]
fn encode_pp(&self) -> String;
fn write<'writer, W>(&self, w: &mut W) -> Result<(), Error>
where
W: 'writer + Write;
fn write_pp<'writer, W>(&self, w: &mut W) -> Result<(), Error>
where
W: 'writer + Write;
}Expand description
A Value that can be serialized and written
Required methods
#[must_use]fn encode(&self) -> String[src]
#[must_use]fn encode(&self) -> String[src]Encodes the value into it’s JSON representation as a string
#[must_use]fn encode_pp(&self) -> String[src]
#[must_use]fn encode_pp(&self) -> String[src]Encodes the value into it’s JSON representation as a string (pretty printed)