Struct syntex_syntax::ast::FieldPat
[−]
[src]
pub struct FieldPat { pub ident: Ident, pub pat: P<Pat>, pub is_shorthand: bool, }
A single field in a struct pattern
Patterns like the fields of Foo { x, ref y, ref mut z }
are treated the same asx: x, y: ref y, z: ref mut z
,
except is_shorthand is true
Fields
ident | The identifier for the field |
pat | The pattern the field is destructured to |
is_shorthand |