Trait aoc_parser::FromParser
source · pub trait FromParser<'inp>: Sized {
// Required method
fn from_parser(parser: &mut Parser<'inp>) -> ParseResult<Self>;
// Provided methods
fn parse_from_str(input: &'inp str) -> GenResult<Self> { ... }
fn parse_from_lines(input: &'inp [&'inp str]) -> GenResult<Self> { ... }
}
Expand description
Trait implemented by types which can be produced by Parser::item