Trait memtable::exts::prelude::FromCsv[][src]

pub trait FromCsv {
    type Output;
    fn from_csv<R>(reader: R) -> Result<Self::Output, Error>
    where
        R: Read
; fn from_csv_str(s: &str) -> Result<Self::Output, Error> { ... }
fn from_csv_file<P>(p: P) -> Result<Self::Output, Error>
    where
        P: AsRef<Path>
, { ... } }
Expand description

Represents ability to load data from a CSV

Associated Types

Represents the type to produce from CSV data

Required methods

Loads a table from some instance of the io::Read trait

Provided methods

Loads a table from a CSV str

Loads a table from a CSV file found at the given path

Implementors