[−][src]Function serde_lexpr::from_reader
pub fn from_reader<T>(rdr: impl Read) -> 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; let cursor = std::io::Cursor::new(b"(1 2 3)"); let v: Vec<u32> = from_reader(cursor).unwrap(); assert_eq!(v, vec![1, 2, 3]);