pub fn make_with(options: CsvOptions) -> TabnasExpand description
Build a CSV parser with the given options: the counterpart of
new Tabnas().use(jsonic).use(Csv, options) and the Go
jsonic.Make() + UseDefaults(Csv, Defaults, options).
Infallible by design: the jsonic base and the embedded grammar are fixed, so a failure here is a bug in this crate rather than anything a caller did.
use tabnas_csv::CsvOptions;
let parser = tabnas_csv::make_with(CsvOptions { header: false, object: false, ..Default::default() });
assert_eq!(parser.parse("a,b\n1,2")?.to_json().to_string(), r#"[["a","b"],["1","2"]]"#);