pub trait PersistableConfig: Serialize + DeserializeOwned {
// Provided methods
fn load_config<P: AsRef<Path>>(path: P) -> Result<Self, Error> { ... }
fn save_config<P: AsRef<Path>>(&self, output_file: P) -> Result<(), Error> { ... }
fn parse(serialized: &str) -> Result<Self, Error> { ... }
}
Provided Methods§
fn load_config<P: AsRef<Path>>(path: P) -> Result<Self, Error>
fn save_config<P: AsRef<Path>>(&self, output_file: P) -> Result<(), Error>
fn parse(serialized: &str) -> Result<Self, Error>
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.