pub fn from_csv<P>(path: P) -> Result<Vec<ScoreCard>, Error>
    where
        P: AsRef<Path>,
    {
        let mut csv_reader = Reader::from_path(path)?;
        let mut scorecards: Vec<ScoreCard> = vec![];
        for record in csv_reader.deserialize() {
            scorecards.push(record?);
        }

        Ok(scorecards)
    }
/// Read a CSV file and populate a Vector of ScoreCards.
Read a CSV file and populate a Vector of ScoreCards.
Read a CSV file and populate a Vector of ScoreCards .
pub fn from_csv<P>(path: P) -> Result<Vec<ScoreCard>, Error>
    where
        P: AsRef<Path>,
    {
        let mut csv_reader = Reader::from_path(path)?;
        let mut scorecards: Vec<ScoreCard> = vec![];
        for record in csv_reader.deserialize() {
            scorecards.push(record?);
        }
        Ok(scorecards)
    }
pub fn from_csv < P > ( path : P ) -> Result < Vec < ScoreCard > , Error > where P : AsRef < Path > , { let mut csv_reader = Reader :: from_path ( path ) ? ; let mut scorecards : Vec < ScoreCard > = vec ! [ ] ; for record in csv_reader . deserialize ( ) { scorecards . push ( record ? ) ; } Ok ( scorecards ) }
Read a CSV file and populate a Vector of ScoreCards.
Read a CSV file and populate a Vector of ScoreCards .
path
P
path
P