pub fn their<Root, Value, NewValue>(
getter: impl Fn(&Root) -> Value + Clone + 'static,
combine: impl Fn(Value, Value) -> NewValue + Clone + 'static,
) -> impl Fn(&Root, &Root) -> NewValuewhere
Value: Clone,Expand description
Equivalent of Swift their(getter, combine)
Takes a getter and binary op, produces (Root, Root) -> NewValue