[][src]Function serde_lexpr::from_str_custom

pub fn from_str_custom<T>(s: &str, options: Options) -> Result<T> where
    T: DeserializeOwned

Deserialize an instance of type T from an S-expression string.

use serde_lexpr::{from_str_custom, parse};

let v: Vec<u32> = from_str_custom("[1 2 3]", parse::Options::elisp()).unwrap();
assert_eq!(v, vec![1, 2, 3]);