rustc_pattern_analysis::rustc

Function would_print_as_wildcard

Source
fn would_print_as_wildcard(tcx: TyCtxt<'_>, p: &WitnessPat<'_, '_>) -> bool
Expand description

Returns true if the given pattern would be printed as a wildcard (_).