Skip to main content

to_string

Function to_string 

Source
pub fn to_string(
    config: WriterConfig,
    headers: Option<Vec<String>>,
    rows: Vec<Row>,
) -> Io<CsvError, String>
Expand description

Write rows to a String (useful for testing).

ยงErrors

Returns CsvError::Csv if any row fails to write.