pub fn read(edn: &str) -> Result<(Edn<'_>, &str), Error>
Expand description
Reads the first object from the &str and the remaining unread &str.
§Errors
Default behavior of Clojure’s read
is to throw an error on EOF, unlike read_string
.
https://clojure.github.io/tools.reader/#clojure.tools.reader.edn/read
See crate::error::Error
.