[][src]Trait rdcl_aoc_helpers::input::WithReadLines

pub trait WithReadLines<R: Read> {
    pub fn read_lines<T: FromStr>(
        self,
        exit_code_on_fail: i32
    ) -> MappedLines<T, R>

Notable traits for MappedLines<T, R>

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

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

Required methods

pub fn read_lines<T: FromStr>(self, exit_code_on_fail: i32) -> MappedLines<T, R>

Notable traits for MappedLines<T, R>

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

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

Loading content...

Implementations on Foreign Types

impl WithReadLines<File> for File[src]

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

Loading content...

Implementors

Loading content...