pub trait Parsing<P> {
// Required methods
fn run(&self, input: &str) -> Result<P>;
fn name(&self) -> &'static str;
}
Expand description
Container for a parsing function.
The contained function transforms the input file into a better usable structure.
Allows to have both failable and infailable parsers,
respective Parser
and FailableParser
(where the function type is a result).