[−][src]Function serde_lexpr::from_slice_custom
pub fn from_slice_custom<T>(s: &[u8], options: Options) -> Result<T> where
T: DeserializeOwned,
Deserialize an instance of type T
from an S-expression byte slice, using the
default parser options.
use serde_lexpr::{from_slice_custom, parse}; let v: Vec<u32> = from_slice_custom(b"[1 2 3]", parse::Options::elisp()).unwrap(); assert_eq!(v, vec![1, 2, 3]);