Skip to main content

FileAccess

Trait FileAccess 

Source
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§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§