Function clippy_utils::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.