pub trait Reader: Send + Sync {
// Required methods
fn extensions(&self) -> &[&'static str];
fn read(&self, path: &Path, options: &ReadOptions) -> Result<Table>;
// Provided method
fn name(&self) -> &'static str { ... }
}Expand description
A backend that knows how to read one or more tabular formats.
Implementors register themselves with an Engine.
Send + Sync so engines can be shared across threads. All
methods take &self so implementors can wrap their internals
in Arc<Mutex<...>> if they need interior state.
Required Methods§
Sourcefn extensions(&self) -> &[&'static str]
fn extensions(&self) -> &[&'static str]
Lowercase file extensions this reader handles, without
the leading dot (e.g. &["xlsx", "xls"]).