pub trait SaveLoadConfig {
// Required methods
fn save_to<T: AsRef<Path>>(&self, path: T) -> Result<(), IoError>;
fn load_from<T: AsRef<Path>>(path: T) -> Result<Self, LoadConfigError>
where Self: Sized;
fn load_str(config: &str) -> Result<Self, LoadConfigError>
where Self: Sized;
}Required Methods§
fn save_to<T: AsRef<Path>>(&self, path: T) -> Result<(), IoError>
fn load_from<T: AsRef<Path>>(path: T) -> Result<Self, LoadConfigError>where
Self: Sized,
fn load_str(config: &str) -> Result<Self, LoadConfigError>where
Self: Sized,
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.