pub trait File<T>where
T: DeserializeOwned,{
// Provided methods
fn load(path: &Path) -> Result<T> { ... }
fn write(&self, path: &Path) -> Result<()>
where Self: Serialize { ... }
}Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.