[−][src]Function serde_sexpr::to_string
pub fn to_string<T: Serialize + ?Sized>(value: &T) -> Result<String>
Serialize the given data structure as an S-Expression in a string.
Examples
let value = vec!["Hello!".to_string(), "Goodbye, world!".to_string(), ")|(".to_string()]; assert_eq!( serde_sexpr::to_string(&value).unwrap(), "(Hello! |Goodbye,\\ world!| |\\)\\|\\(|)", );