CodeQL library for Rust
codeql/rust-all 0.1.11 (changelog, source)
Search

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`
}
string getFieldName()