Member predicate Impl::StructPatField::getFieldName
Gets the name of the field. This includes the case when shorthand syntax is used:
match foo {
Foo { x: a, .. } => ..., // field name is `x`
Bar { y, .. } => ... // field name is `y`
}
Gets the name of the field. This includes the case when shorthand syntax is used:
match foo {
Foo { x: a, .. } => ..., // field name is `x`
Bar { y, .. } => ... // field name is `y`
}