Function clojure_reader::edn::read_string

source ·
pub fn read_string(edn: &str) -> Result<Edn<'_>, Error>
Expand description

Reads one object from the &str.

§Errors

See crate::error::Error.

Examples found in repository?
examples/get-nth.rs (line 20)
19
20
21
22
fn main() {
  let e = edn::read_string("{:foo {猫 {{:foo :bar} [1 2 42 3]}}}").unwrap();
  println!("{:?}", maybe_forty_two(&e));
}