parse_file

Function parse_file 

Source
pub fn parse_file<T: GetCardInfo + Clone>(
    path: &PathBuf,
) -> Result<Vec<CardEntry<T>>, Vec<ParseError>>
Expand description

Parses a file

ยงErrors

  • If parse_line fails on any of the lines
  • If the same card name appears multiple times in the file
  • If the reader fails to read a line