pub fn to_csv<P>(path: P, entries: &[ShortScoreCard]) -> Result<(), Error>
    where
        P: AsRef<Path>,
    {
        let mut wtr = csv::Writer::from_path(path)?;
        for entry in entries {
            wtr.serialize(entry)?;
        }
        wtr.flush()?;
        Ok(())
    }
// Saves a slice of ShortScoreCards to a CSV file.
Saves a slice of ShortScoreCards to a CSV file.
Saves a slice of ShortScoreCards to a CSV file .
pub fn to_csv<P>(path: P, entries: &[ShortScoreCard]) -> Result<(), Error>
    where
        P: AsRef<Path>,
    {
        let mut wtr = csv::Writer::from_path(path)?;
        for entry in entries {
            wtr.serialize(entry)?;
        }
        wtr.flush()?;
        Ok(())
    }
pub fn to_csv < P > ( path : P , entries : & [ ShortScoreCard ] ) -> Result < ( ) , Error > where P : AsRef < Path > , { let mut wtr = csv :: Writer :: from_path ( path ) ? ; for entry in entries { wtr . serialize ( entry ) ? ; } wtr . flush ( ) ? ; Ok ( ( ) ) }
Saves a slice of ShortScoreCards to a CSV file.
Saves a slice of ShortScoreCards to a CSV file .
path
P
entries
&[ShortScoreCard]
path
P
entries
&[ShortScoreCard]