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.

Required 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