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

Member predicate Impl::StructExprField::getFieldName

Gets the name of the field. This includes the case when shorthand syntax is used:

Foo {
  a: 1, // field name is `a`
  b     // field name is `b`
}
string getFieldName()