fn parse_coord(line: &str) -> Vec<Point> {
   line.split("->")
       .map(|pair| Point::from_str(pair).unwrap())
       .collect::<Vec<_>>()
}
// Parse co-ordinates from a line
Parse co-ordinates from a line
Parse co - ordinates from a line
fn parse_coord(line: &str) -> Vec<Point> {
   line.split("->")
       .map(|pair| Point::from_str(pair).unwrap())
       .collect::<Vec<_>>()
}
fn parse_coord ( line : & str ) -> Vec < Point > { line . split ( " " ) . map ( | pair | Point :: from_str ( pair ) . unwrap ( ) ) . collect :: < Vec < _ > > ( ) }
Parse co-ordinates from a line
Parse co - ordinates from a line
line
&str
line
&str