[−][src]Function serde_lexpr::from_str
pub fn from_str<T>(s: &str) -> Result<T> where
T: DeserializeOwned,
Deserialize an instance of type T
from an S-expression string, using the
default parser options.
use serde_lexpr::from_str; let v: Vec<u32> = from_str("(1 2 3)").unwrap(); assert_eq!(v, vec![1, 2, 3]);