reaclib-rs
A parsing library for the reaclib data format.
The data is represented by Set
, and the parsing is mostly done by Iter
.
The data can be collected into a type that implements FromIterator
, such as Vec
.
A convenience function to_hash_map
is provided for the case that you want a Vec
of all
Set
s for each reaction.
Format
The format is documented on the reaclib format help page.
There are two formats, both supported by this library.
Format
is used to indicate which version to expect.
Examples
use ;
use ;
let file = open?;
let file = new;
let iter = new;
let data: = iter.?;
use ;
use ;
let input = stdin.lock;
let data: = to_hash_map?;
Features
serde
: ProvideSerialize
andDeserialize
implementations for serde.arbitrary
: ProvideArbitrary
implementations for arbitrary, useful for fuzzing.
License
Licensed under either of
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.