[][src]Function serde_lexpr::to_string_custom

pub fn to_string_custom<T>(value: &T, options: Options) -> Result<String> where
    T: Serialize

Serialize an instance of type T into an S-expression string.

use serde_lexpr::{print, to_string_custom};

assert_eq!(to_string_custom(&("foo", 1), print::Options::elisp()).unwrap(), r#"["foo" 1]"#.to_string())