pub fn with_context_capture2<F, A, B, R>(f: F) -> impl FnOnce(A, B) -> Rwhere F: FnOnce(A, B) -> R,
Helper function for automatic closure context capture with two arguments