[][src]Function gluon_base::merge::merge

pub fn merge<F, A: ?Sized, B: ?Sized, R>(
    a_original: &A,
    a: Option<A::Owned>,
    b_original: &B,
    b: Option<B::Owned>,
    f: F
) -> Option<R> where
    A: ToOwned,
    B: ToOwned,
    F: FnOnce(A::Owned, B::Owned) -> R, 

Merges two values using f if either or both them is Some(..). If both are None, None is returned.