Function trace_from_str

Source
pub fn trace_from_str<S>(str: &str) -> Result<Trace<S>, Error>
where S: for<'de> Deserialize<'de>,
Expand description

Deserialize a Trace over states S from an ITF JSON string.

Examples found in repository?
examples/cannibals.rs (line 45)
43
44
45
46
47
48
fn main() {
    let data = include_str!("../tests/fixtures/MissionariesAndCannibals.itf.json");
    let trace: itf::Trace<State> = itf::trace_from_str(data).unwrap();

    dbg!(trace);
}