Function rustc_mir::hair::pattern::_match::constructor_sub_pattern_tys[][src]

Important traits for Vec<u8>
fn constructor_sub_pattern_tys<'a, 'tcx: 'a>(
    cx: &MatchCheckCtxt<'a, 'tcx>,
    ctor: &Constructor,
    ty: Ty<'tcx>
) -> Vec<Ty<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

This computes the types of the sub patterns that a constructor should be expanded to.

For instance, a tuple pattern (43u32, 'a') has sub pattern types [u32, char].