Function neodyn_xc::ser::text::to_bytes[][src]

pub fn to_bytes<'a, T: ?Sized, I>(
    value: &T,
    indent: I
) -> Result<Vec<u8>, Error> where
    T: Serialize,
    I: Into<Option<&'a str>>, 

Serializes a value to a byte buffer as the Neodyn Exchange text representation. indent will be used to pretty-print it if it is Some. Otherwise, if it is None, a compact representation will be emitted.