Trait Merge

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

The Merge trait provides a method for merging configuration down through each level.

A module configuration should implement this trait for setting its configuration throughout each level.

Required Methods§

Source

fn merge(&mut self, prev: &Self) -> Result<(), MergeConfigError>

Module merge function.

§Returns

Result, Ok on success or MergeConfigError on failure.

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 Merge for ()

Source§

fn merge(&mut self, _prev: &Self) -> Result<(), MergeConfigError>

Implementors§