Trait TextIOHandler

Source
pub trait TextIOHandler {
    // Required methods
    fn read_text(&self, name: &OsStr) -> IoResult<String>;
    fn write_text(&mut self, name: &OsStr, content: String) -> IoResult<()>;
}
Expand description

Implementors provide the ability to accept std::string::String content associated with an std::ffi::OsStr name, as can be expected from entities mediating a file system or their mocks and simulators.

Required Methods§

Source

fn read_text(&self, name: &OsStr) -> IoResult<String>

Source

fn write_text(&mut self, name: &OsStr, content: String) -> IoResult<()>

Implementors§