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
Required methods
fn indicates_new_record(&self, line: &str) -> bool
[src]
fn indicates_new_record(&self, line: &str) -> bool
[src]Test for whether a line indicates that a new record starts.