pub trait DiskInterface{
const FILE_NAME: &'static str;
const FORMAT: FileFormat;
// Provided methods
fn path() -> Result<PathBuf> { ... }
fn load() -> Result<Self> { ... }
fn save(&self) -> Result<()> { ... }
}Required Associated Constants§
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".