clippy_utils

Function recurse_or_patterns

Source
pub fn recurse_or_patterns<'tcx, F: FnMut(&'tcx Pat<'tcx>)>(
    pat: &'tcx Pat<'tcx>,
    f: F,
)
Expand description

If the pattern is an or pattern, call the function once for each sub pattern. Otherwise, call the function once on the given pattern.