[−][src]Function serde_lexpr::to_string
pub fn to_string<T>(value: &T) -> Result<String> where
T: Serialize,
Serialize an instance of type T
into an S-expression string, using the
default printer options.
use serde_lexpr::to_string; assert_eq!(to_string(&("foo", 1)).unwrap(), r#"#("foo" 1)"#.to_string())