fn from_str(s: &str) -> Result<Self, Self::Err> {
        let mut coords = s.trim_matches(|p| '(' == p || ')' == p )
            .split(',');
        let x = coords.next().unwrap().parse::<usize>()?;
        let y = coords.next().unwrap().parse::<usize>()?;
        Ok(Self { x, y })
    }
// Really, this should be a ParsePoint2DError.
Really, this should be a ParsePoint2DError.
Really this should be a ParsePoint2DError .
fn from_str(s: &str) -> Result<Self, Self::Err> {
        let mut coords = s.trim_matches(|p| '(' == p || ')' == p )
            .split(',');
        let x = coords.next().unwrap().parse::<usize>()?;
        let y = coords.next().unwrap().parse::<usize>()?;
        Ok(Self { x, y })
    }
fn from_str ( s : & str ) -> Result < Self , Self :: Err > { let mut coords = s . trim_matches ( | p | '(' == p || ')' == p ) . split ( ',' ) ; let x = coords . next ( ) . unwrap ( ) . parse :: < usize > ( ) ? ; let y = coords . next ( ) . unwrap ( ) . parse :: < usize > ( ) ? ; Ok ( Self { x , y } ) }
Really, this should be a ParsePoint2DError.
Really this should be a ParsePoint2DError .
s
&str