Structsยง
- Field
Info ๐ - Ident
List ๐Attribute - Repr
Info - Zero
VecAttrs
Functionsยง
- extract_
attributes_ common - Removes all known zerovec:: attributes from struct attrs and validates them
- extract_
field_ attributes - Extract attributes from field, and return them
- extract_
parenthetical_ zerovec_ attrs - Extracts all
zerovec::name(..)
attribute - extract_
zerovec_ attributes - Removes all attributes with
zerovec
in the name and places them in a separate vector - generate_
per_ ๐field_ offsets - Given an iterator over ULE or AsULE struct fields, returns code that calculates field sizes and generates a line of code per field based on the per_field_code function (whose parameters are the field, the identifier of the const for the previous offset, the identifier for the const for the next offset, and the field index)
- repr_
for - Returns the repr attribute to be applied to the resultant ULE or VarULE type
- semi_
for - Return a semicolon token if necessary after the struct definition
- suffixed_
ident ๐ - wrap_
field_ inits - Given a set of entries for struct field definitions to go inside a
struct {}
definition, wrap in a () or {} based on the type of field