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>>
Object Safety§
This trait is not object safe.