[−][src]Function serde_lexpr::to_vec_custom
pub fn to_vec_custom<T>(value: &T, options: Options) -> Result<Vec<u8>> where
T: Serialize,
Serialize an instance of type T
into an S-expression byte vector.
use serde_lexpr::{print, to_vec_custom}; let expected: Vec<u8> = r#"["foo" 1]"#.into(); assert_eq!(to_vec_custom(&("foo", 1), print::Options::elisp()).unwrap(), expected);