Skip to main content

field

Macro field 

Source
field!() { /* proc-macro */ }
Expand description

Creates a type-safe descriptor for a struct field.

The input uses field access syntax, for example field!(Position::x) or field!(Offset::0).