pub trait FileSystem:
Send
+ Sync
+ OxcResolverFileSystem {
// Required methods
fn remove_dir_all(&self, path: &Path) -> Result<()>;
fn create_dir_all(&self, path: &Path) -> Result<()>;
fn write(&self, path: &Path, content: &[u8]) -> Result<()>;
fn exists(&self, path: &Path) -> bool;
fn read(&self, path: &Path) -> Result<Vec<u8>>;
}Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".