pub fn opt_pattern<I, FnX, X>( f: FnX, ) -> impl FnMut(I) -> Res<I, OptPattern<X>> + Copywhere I: Span, FnX: FnMut(I) -> Res<I, X> + Copy, X: Clone,