pub trait ConfigTrait:
DeserializeOwned
+ Serialize
+ Sized {
type Previous: ConfigTrait + Into<Self>;
// Required method
fn targets(&self) -> Vec<Target>;
// Provided methods
fn new(filename: &Path) -> Result<(Self, ConfigState), Error> { ... }
fn save(&self, path: &Path) -> Result<(), Error> { ... }
}
Required Associated Types§
type Previous: ConfigTrait + Into<Self>
Required Methods§
Provided Methods§
fn new(filename: &Path) -> Result<(Self, ConfigState), Error>
fn save(&self, path: &Path) -> Result<(), 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.