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

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

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

Associated Types

type Err[src]

The associated error which can be returned from parsing.

Loading content...

Required methods

pub fn new() -> Self[src]

Create a new initial record.

pub fn indicates_new_record(&self, line: &str) -> bool[src]

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

pub fn parse(&mut self, line: &str) -> Result<(), Self::Err>[src]

Parses a line.

Loading content...

Implementors

Loading content...