pub trait FileAccess {
// Required method
fn read(&self, path: &str) -> Result<String, FileError>;
}Expand description
File access behind a trait: the VFS builds on this, dry-run wraps it in RecordingFs.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".