pub trait FileSystem {
// Required methods
fn file_exists(&self, path: &Path) -> bool;
fn read_to_string(&self, path: &Path) -> Result<String>;
}Expand description
Trait to abstract filesystem operations for easier testing.
pub trait FileSystem {
// Required methods
fn file_exists(&self, path: &Path) -> bool;
fn read_to_string(&self, path: &Path) -> Result<String>;
}Trait to abstract filesystem operations for easier testing.