fn read_zones(
    reader: impl std::io::BufRead,
) -> impl std::iter::Iterator<Item = Result<Zone, Error>> {
    reader
        .lines()
        .map(|l| l.map_err(|e| failure::err_msg(e.to_string())))
        .map(|l| {
            l.and_then(|l| serde_json::from_str(&l).map_err(|e| failure::err_msg(e.to_string())))
        })
}
// Stream Cosmogony's Zone from a Reader
Stream Cosmogony's Zone from a Reader
Stream Cosmogony ' s Zone from a Reader
fn read_zones(
    reader: impl std::io::BufRead,
) -> impl std::iter::Iterator<Item = Result<Zone, Error>> {
    reader
        .lines()
        .map(|l| l.map_err(|e| failure::err_msg(e.to_string())))
        .map(|l| {
            l.and_then(|l| serde_json::from_str(&l).map_err(|e| failure::err_msg(e.to_string())))
        })
}
fn read_zones ( reader : impl std :: io :: BufRead , ) -> impl std :: iter :: Iterator < Item = Result < Zone , Error > > { reader . lines ( ) . map ( | l | l . map_err ( | e | failure :: err_msg ( e . to_string ( ) ) ) ) . map ( | l | { l . and_then ( | l | serde_json :: from_str ( & l ) . map_err ( | e | failure :: err_msg ( e . to_string ( ) ) ) ) } ) }
Stream Cosmogony's Zone from a Reader
Stream Cosmogony ' s Zone from a Reader
reader
impl std::io::BufRead