[−][src]Trait value_trait::Writable
A Value that can be serialized and written
Required methods
#[must_use]fn encode(&self) -> String
Encodes the value into it's JSON representation as a string
#[must_use]fn encode_pp(&self) -> String
Encodes the value into it's JSON representation as a string (pretty printed)
fn write<'writer, W>(&self, w: &mut W) -> Result<()> where
W: 'writer + Write,
W: 'writer + Write,
Encodes the value into it's JSON representation into a Writer
Errors
Will return Err
if an IO error is encountered
fn write_pp<'writer, W>(&self, w: &mut W) -> Result<()> where
W: 'writer + Write,
W: 'writer + Write,
Encodes the value into it's JSON representation into a Writer, pretty printed
Errors
Will return Err
if an IO error is encountered.