c

Macro c 

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

Constructor macro - builds a struct with automatic span field

Syntax:

c!(Type { field1 = expr1, field2, ... })

Example:

c!(VariableDirective { name=something, foo })
// Expands to: VariableDirective { name: something, foo: foo, span: span }