Trait FilePath

Source
pub trait FilePath {
    // Required methods
    fn write(&self, msg: String) -> Result<()>;
    fn read(&self) -> Result<String>;

    // Provided method
    fn is_empty(&self) -> Result<bool> { ... }
}

Required Methods§

Source

fn write(&self, msg: String) -> Result<()>

Source

fn read(&self) -> Result<String>

Provided Methods§

Source

fn is_empty(&self) -> Result<bool>

Implementations on Foreign Types§

Source§

impl FilePath for PathBuf

Source§

fn write(&self, msg: String) -> Result<()>

Source§

fn read(&self) -> Result<String>

Implementors§