FileSystem

Trait FileSystem 

Source
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.

Required Methods§

Source

fn file_exists(&self, path: &Path) -> bool

Source

fn read_to_string(&self, path: &Path) -> Result<String>

Implementors§