Trait example_data::Repo[][src]

pub trait Repo {
    fn load_table(&self, name: &str) -> Result<DataTable, String>;
fn load_data_set(&self, name: &str) -> Result<DataSet, String>; }

Repo is a collection of DataTables

Required methods

fn load_table(&self, name: &str) -> Result<DataTable, String>[src]

Loads the DataTable with matching name

fn load_data_set(&self, name: &str) -> Result<DataSet, String>[src]

Loads the DataTable with matching name

Loading content...

Implementations

impl dyn Repo[src]

pub fn default() -> impl Repo[src]

Gets the default repository

Currently, this is the only supported repository. In the current set-up all data-tables are included in the binary.

This means that no network connection is required to connect to the Repo

Implementors

Loading content...