pub trait Disk {
// Required methods
fn read(&self, path: &Path) -> Option<String>;
fn exists(&self, path: &Path) -> bool;
fn list_md(&self, dir: &Path) -> Vec<PathBuf>;
}Expand description
The read surface the [Vfs] overlays writes on top of.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".