Trait rdcl_aoc_helpers::input::MultilineFromStr
source · 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
Required Methods
sourcefn indicates_new_record(&self, line: &str) -> bool
fn indicates_new_record(&self, line: &str) -> bool
Test for whether a line indicates that a new record starts.