pub trait ToDisk: FromDisk {
// Provided methods
fn persist_if(&self, yes: bool) -> Result<()>
where Self: Sized + Serialize { ... }
fn persist(&self) -> Result<()>
where Self: Sized + Serialize { ... }
}Provided Methods§
Sourcefn persist_if(&self, yes: bool) -> Result<()>
fn persist_if(&self, yes: bool) -> Result<()>
Persist to path only if yes is true
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".