Trait simd_json::prelude::Writable [−][src]
pub trait Writable { fn encode(&self) -> String; 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
Prelude to include needed traits A Value that can be serialized and written
Required methods
Encodes the value into it’s JSON representation as a string (pretty printed)
Encodes the value into it’s JSON representation into a Writer
Errors
Will return Err
if an IO error is encountered