pub trait CsvEncode {
// Required methods
fn header() -> Vec<&'static str>;
fn encode_fields(&self, out: &mut Vec<String>);
}Expand description
A record type that can be written as a CSV row.
Implementors describe a fixed column header and append
their fields, in the same order, in encode_fields.
The companion CsvDecode reads the row back.
Required Methods§
Sourcefn encode_fields(&self, out: &mut Vec<String>)
fn encode_fields(&self, out: &mut Vec<String>)
Appends this record’s fields, in column order, to out.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".