/// Parses CSV data from string.
Parses CSV data from string.
Parses CSV data from string .
pub fn parse_csv<T: for<'de> Deserialize<'de>, S: AsRef<str>>(data: S) -> Result<Vec<T>, Report> {
  let reader = CsvReaderBuilder::new()
    .has_headers(true)
    .from_reader(data.as_ref().as_bytes());
  reader
    .into_deserialize::<T>()
    .into_iter()
    .map(to_eyre_error)
    .collect::<Result<Vec<T>, Report>>()
}
pub fn parse_csv < T : for < ' de > Deserialize < ' de > , S : AsRef < str > > ( data : S ) -> Result < Vec < T > , Report > { let reader = CsvReaderBuilder :: new ( ) . has_headers ( true ) . from_reader ( data . as_ref ( ) . as_bytes ( ) ) ; reader . into_deserialize :: < T > ( ) . into_iter ( ) . map ( to_eyre_error ) . collect :: < Result < Vec < T > , Report > > ( ) }
Parses CSV data from string.
Parses CSV data from string .
data
S