Skip to main content

DataSource

Trait DataSource 

Source
pub trait DataSource: Send + Sync {
    // Required methods
    fn column(&self, name: &str) -> Option<Vec<f64>>;
    fn column_names(&self) -> Vec<String>;
    fn len(&self) -> usize;
}
Expand description

Generic data-provider contract for embedding this crate into host apps.

Required Methods§

Source

fn column(&self, name: &str) -> Option<Vec<f64>>

Source

fn column_names(&self) -> Vec<String>

Source

fn len(&self) -> usize

Implementors§