pub trait FileStore {
// Required methods
fn read(&self, path: &str) -> GeopResult<String>;
fn list(&self) -> Vec<String>;
}Expand description
Where Files reads files from.
Required Methods§
Sourcefn read(&self, path: &str) -> GeopResult<String>
fn read(&self, path: &str) -> GeopResult<String>
The text of the file path.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl FileStore for BTreeMap<String, String>
Files held in memory, by path: what an editor is sent by its front end.
impl FileStore for BTreeMap<String, String>
Files held in memory, by path: what an editor is sent by its front end.
Source§impl FileStore for Box<dyn FileStoreMut>
Files of a store chosen at run time: an editor’s, whose files are
whatever its front end keeps, with whatever library beside them.
impl FileStore for Box<dyn FileStoreMut>
Files of a store chosen at run time: an editor’s, whose files are whatever its front end keeps, with whatever library beside them.