combining

Function combining 

Source
pub fn combining<Root, Value, NewValue>(
    getter: impl Fn(&Root) -> Value + Clone + 'static,
    combine: impl Fn(Value, Value) -> NewValue + Clone + 'static,
) -> impl Fn(Value, &Root) -> NewValue
where Value: Clone,
Expand description

Equivalent of Swift combining(getter, combine) Takes a getter and a binary function, returns a new function (Value, Root) -> NewValue