pub trait Backend {
// Required methods
fn load(&self, prj: &Project) -> Result<(Store, Vec<String>)>;
fn flush(&self, prj: &Project, store: Store) -> Result<()>;
fn load_docs(&self, prj: &Project) -> (Vec<Doc>, Vec<String>);
}Expand description
A durable storage medium for the corpus.
Required Methods§
Sourcefn load(&self, prj: &Project) -> Result<(Store, Vec<String>)>
fn load(&self, prj: &Project) -> Result<(Store, Vec<String>)>
Load the durable corpus into a fresh working Store, plus non-fatal
parse errors (unparsable documents are skipped, not fatal).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".