Trait Merge

Source
pub trait Merge: Sized {
    // Required method
    fn merge(self, other: Self) -> Result<Self>;
}
Expand description

Trait for merging configuration structs together.

Required Methods§

Source

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

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.

Implementations on Foreign Types§

Source§

impl<T: Merge> Merge for Option<T>

Source§

fn merge(self, other: Option<T>) -> Result<Option<T>>

Implementors§