WithCSV

Trait WithCSV 

Source
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§

Source

fn write_csv(&self, file_path: &str) -> Result<(), Box<dyn Error>>

Source

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.

Implementors§

Source§

impl WithCSV for DataFrame

Available on crate feature csv only.