pub trait Files {
// Required methods
fn read(&mut self, path: &str) -> GeopResult<String>;
fn programs_beside(
&mut self,
path: &str,
) -> BTreeMap<String, Option<String>>;
fn write(&mut self, path: &str, bytes: &[u8]) -> GeopResult<()>;
fn today(&self) -> String;
}Expand description
The files of the front end a session runs in, which the tools that
take a path read and write (AgentTool::files).
Required Methods§
Sourcefn read(&mut self, path: &str) -> GeopResult<String>
fn read(&mut 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".