pub trait File {
// Required methods
fn load(path: &Path) -> Result<Self>
where Self: Sized;
fn write(&self, path: &Path) -> Result<()>;
}Expand description
Generic trait
Required Methods§
fn load(path: &Path) -> Result<Self>where
Self: Sized,
fn write(&self, path: &Path) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".