[−][src]Function rustc_mir_build::thir::pattern::_match::pat_constructor
fn pat_constructor<'tcx>(
tcx: TyCtxt<'tcx>,
param_env: ParamEnv<'tcx>,
pat: &Pat<'tcx>
) -> Option<Constructor<'tcx>>
Determines the constructor that the given pattern can be specialized to.
Returns None in case of a catch-all, which can't be specialized.