Skip to main content

read_all

Function read_all 

Source
pub fn read_all(
    path: impl Into<String>,
    config: ReaderConfig,
) -> Io<CsvError, Vec<Row>>
Expand description

Read all rows from a file path, returning an Io that produces a Vec<Row>.

The file is opened, read, and closed within the Io.

ยงErrors

Returns CsvError::Io if the file cannot be opened, or CsvError::Csv if any row fails to parse.