pub fn from_slice_multi(
input: &(impl AsRef<[u8]> + ?Sized),
) -> Result<Sexprs<'_>>
Expand description
Parse multiple Sexpr
s from bytes. To only parse a single one, have a look at
from_slice
.
§Example
let sexprs = rsexpr::from_slice_multi(b"(\"foo bar\") (baz [1 2 3])").unwrap();
for sexpr in &sexprs {
println!("{sexpr:#}\n");
}
assert_eq!(sexprs.len(), 2);
§Errors
If the parsing failed, a list of Error
s is returned.