Skip to main content

IO

Trait IO 

Source
pub trait IO {
    // Required methods
    fn path(&self) -> &str;
    fn read(&self) -> Result<String, Error>;
    fn write(&self, content: String) -> Result<(), Error>;
}

Required Methods§

Source

fn path(&self) -> &str

Source

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

Source

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

Implementors§