Trait rdcl_aoc_helpers::input::MultilineFromStr[][src]

pub trait MultilineFromStr {
    type Err;
    fn new() -> Self;
fn indicates_new_record(&self, line: &str) -> bool;
fn parse(&mut self, line: &str) -> Result<(), Self::Err>; }
Expand description

Inspired by std::str::FromStr, so you can read input files where a record spans multiple lines.

Associated Types

The associated error which can be returned from parsing.

Required methods

Create a new initial record.

Test for whether a line indicates that a new record starts.

Parses a line.

Implementors