ConfigMerge

Trait ConfigMerge 

pub trait ConfigMerge:
    Serialize
    + DeserializeOwned
    + Default {
    // Required method
    fn merge(&mut self, other: Self) -> Result<(), Error>;
}
Expand description

Trait for merging config values. Implemented by the flowey_config! macro on the generated Config type.

Required Methods§

fn merge(&mut self, other: Self) -> Result<(), Error>

Merge another config into this one. Fields that are already set must agree with the incoming values.

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.

Implementors§