[][src]Trait rdcl_aoc_helpers::input::WithReadMultiLines

pub trait WithReadMultiLines<R: Read> {
    pub fn read_multi_lines<T: MultilineFromStr>(
        self,
        exit_code_on_fail: i32
    ) -> MappedMultiLines<T, R>

Notable traits for MappedMultiLines<T, R>

impl<T: MultilineFromStr, R: Read> Iterator for MappedMultiLines<T, R> where
    <T as MultilineFromStr>::Err: Debug
type Item = T;
; }

This trait allows you to easily read lines from a Readable object.

Required methods

pub fn read_multi_lines<T: MultilineFromStr>(
    self,
    exit_code_on_fail: i32
) -> MappedMultiLines<T, R>

Notable traits for MappedMultiLines<T, R>

impl<T: MultilineFromStr, R: Read> Iterator for MappedMultiLines<T, R> where
    <T as MultilineFromStr>::Err: Debug
type Item = T;
[src]

Read lines from a given Readable object, and parse its lines to the requested type.

Loading content...

Implementations on Foreign Types

impl WithReadMultiLines<File> for File[src]

impl WithReadMultiLines<File> for Result<File>[src]

Loading content...

Implementors

Loading content...