[][src]Trait object_merge::Merge

pub trait Merge {
    fn merge(&mut self, template: &Self);
}

Combine a type with a template of what values to use when they're unspecified in the self instance. On containers like maps, this will recursively call merge for elements that have the same key.

Required Methods

Implementations on Foreign Types

impl<K, V> Merge for BTreeMap<K, V> where
    K: Ord,
    V: Merge
[src]

impl<K, V> Merge for HashMap<K, V> where
    K: Eq + Hash,
    V: Merge
[src]

impl<T> Merge for Option<T> where
    T: Merge + Clone
[src]

impl Merge for ()
[src]

impl Merge for i8
[src]

impl Merge for u8
[src]

impl Merge for i16
[src]

impl Merge for u16
[src]

impl Merge for i32
[src]

impl Merge for u32
[src]

impl Merge for i64
[src]

impl Merge for u64
[src]

impl Merge for i128
[src]

impl Merge for u128
[src]

impl Merge for isize
[src]

impl Merge for usize
[src]

impl Merge for f32
[src]

impl Merge for f64
[src]

impl Merge for char
[src]

impl Merge for bool
[src]

impl Merge for String
[src]

impl Merge for Duration
[src]

impl<A> Merge for (A,) where
    A: Merge
[src]

impl<A, B> Merge for (A, B) where
    A: Merge,
    B: Merge
[src]

impl<A, B, C> Merge for (A, B, C) where
    A: Merge,
    B: Merge,
    C: Merge
[src]

impl<A, B, C, D> Merge for (A, B, C, D) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge
[src]

impl<A, B, C, D, E> Merge for (A, B, C, D, E) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge
[src]

impl<A, B, C, D, E, F> Merge for (A, B, C, D, E, F) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge
[src]

impl<A, B, C, D, E, F, G> Merge for (A, B, C, D, E, F, G) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge
[src]

impl<A, B, C, D, E, F, G, H> Merge for (A, B, C, D, E, F, G, H) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge
[src]

impl<A, B, C, D, E, F, G, H, I> Merge for (A, B, C, D, E, F, G, H, I) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J> Merge for (A, B, C, D, E, F, G, H, I, J) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J, K> Merge for (A, B, C, D, E, F, G, H, I, J, K) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge,
    K: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L> Merge for (A, B, C, D, E, F, G, H, I, J, K, L) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge,
    K: Merge,
    L: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M> Merge for (A, B, C, D, E, F, G, H, I, J, K, L, M) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge,
    K: Merge,
    L: Merge,
    M: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N> Merge for (A, B, C, D, E, F, G, H, I, J, K, L, M, N) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge,
    K: Merge,
    L: Merge,
    M: Merge,
    N: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O> Merge for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge,
    K: Merge,
    L: Merge,
    M: Merge,
    N: Merge,
    O: Merge
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P> Merge for (A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P) where
    A: Merge,
    B: Merge,
    C: Merge,
    D: Merge,
    E: Merge,
    F: Merge,
    G: Merge,
    H: Merge,
    I: Merge,
    J: Merge,
    K: Merge,
    L: Merge,
    M: Merge,
    N: Merge,
    O: Merge,
    P: Merge
[src]

Implementors