pub trait WithCSV: Sized {
// Required methods
fn write_csv(&self, file_path: &str) -> Result<(), Box<dyn Error>>;
fn read_csv(
file_path: &str,
delimiter: char,
) -> Result<Self, Box<dyn Error>>;
}
Expand description
To handle CSV file format
Required Methods§
fn write_csv(&self, file_path: &str) -> Result<(), Box<dyn Error>>
fn read_csv(file_path: &str, delimiter: char) -> Result<Self, Box<dyn Error>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.