peace_params 0.0.15

Constraints and specifications for parameters for the peace automation framework.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::Params;

/// Trait for merging `ParamsPartial` onto a `Params` object.
///
/// This is automatically implemented by [`#[derive(Params)]`].
///
/// [`#[derive(Params)]`]: peace_params_derive::Params
pub trait ParamsMergeExt: Params {
    /// Moves the values from `Self::Partial` onto this `Params` object.
    fn merge(&mut self, params_partial: <Self as Params>::Partial);
}