Skip to main content

FileStoreMut

Trait FileStoreMut 

Source
pub trait FileStoreMut: FileStore {
    // Required method
    fn write(&mut self, path: &str, text: Option<String>);
}
Expand description

Required Methods§

Source

fn write(&mut self, path: &str, text: Option<String>)

Sets the file path to text, or — None — removes it.

Trait Implementations§

Source§

impl FileStore for Box<dyn FileStoreMut>

Files of a store chosen at run time: an editor’s, whose files are whatever its front end keeps, with whatever library beside them.

Source§

fn read(&self, path: &str) -> GeopResult<String>

The text of the file path.
Source§

fn list(&self) -> Vec<String>

Every file there is, by path: programs and the files they read.
Source§

impl FileStoreMut for Box<dyn FileStoreMut>

Source§

fn write(&mut self, path: &str, text: Option<String>)

Sets the file path to text, or — None — removes it.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl FileStoreMut for BTreeMap<String, String>

Source§

fn write(&mut self, path: &str, text: Option<String>)

Source§

impl FileStoreMut for Box<dyn FileStoreMut>

Source§

fn write(&mut self, path: &str, text: Option<String>)

Implementors§