[−][src]Function serde_lexpr::from_reader_custom
pub fn from_reader_custom<T>(rdr: impl Read, options: Options) -> Result<T> where
T: DeserializeOwned,
Parse a value from an input stream of S-expressions, using the default parser options.
use serde_lexpr::{from_reader_custom, parse}; let cursor = std::io::Cursor::new(b"(1 2 3)"); let v: Vec<u32> = from_reader_custom(cursor, parse::Options::elisp()).unwrap(); assert_eq!(v, vec![1, 2, 3]);