Function rustc::middle::typeck::check::_match::check_struct_pat[src]
pub fn check_struct_pat(pcx: &pat_ctxt, pat_id: NodeId, span: Span, expected: t, path: &Path, fields: &[FieldPat], etc: bool, struct_id: DefId, substitutions: &Substs)
pub fn check_struct_pat(pcx: &pat_ctxt, pat_id: NodeId, span: Span, expected: t, path: &Path, fields: &[FieldPat], etc: bool, struct_id: DefId, substitutions: &Substs)
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).