pub fn read<I>(&self, lines: &mut I) -> Result<Grid, Error>
        where I: Iterator<Item=io::Result<String>> {
        let rows = self.parse_rows(lines)?;
        Ok(GridReader::rows_to_grid(rows))
    }
/// Constructs a `Grid` from an iterator of lines.
///
/// Consumes lines from the given iterator until it encounters one consisting of whitespace,
/// where each line is interpreted as a row, with each cell separated by whitespace.
/// The rows must form a square (with an allowed size determined by `set_size_filter(...)`).
/// Any errors encountered will halt consumption of lines mid-way.
Constructs a `Grid` from an iterator of lines.
Consumes lines from the given iterator until it encounters one consisting of whitespace,
where each line is interpreted as a row, with each cell separated by whitespace.
The rows must form a square (with an allowed size determined by `set_size_filter(...)`).
Any errors encountered will halt consumption of lines mid-way.
Constructs a ` Grid ` from an iterator of lines . Consumes lines from the given iterator until it encounters one consisting of whitespace where each line is interpreted as a row with each cell separated by whitespace . The rows must form a square ( with an allowed size determined by ` set_size_filter ( ... ) ` ) . Any errors encountered will halt consumption of lines mid - way .
pub fn read<I>(&self, lines: &mut I) -> Result<Grid, Error>
        where I: Iterator<Item=io::Result<String>> {
        let rows = self.parse_rows(lines)?;
        Ok(GridReader::rows_to_grid(rows))
    }
pub fn read < I > ( & self , lines : & mut I ) -> Result < Grid , Error > where I : Iterator < Item = io :: Result < String > > { let rows = self . parse_rows ( lines ) ? ; Ok ( GridReader :: rows_to_grid ( rows ) ) }
Constructs a `Grid` from an iterator of lines.
Constructs a ` Grid ` from an iterator of lines .
&self
lines
&mut I
&self
lines
&mut I