Macros§
Structs§
- Representation π
Enums§
- Integer
Repr π - Repr π
Constants§
Traits§
Functions§
- enum_
has_ πfields - Check that a struct has no padding by asserting that the size of the struct is equal to the sum of the size of itβs fields
- Check that all fields implement a given trait
- get_
enum_ πvariants - get_
field_ πtypes - get_
fields πExtract theFields
off aDeriveInput
, or, in theenum
case, off those of theenum_variant
, when provided (e.g., forZeroable
). - get_
repr π - get_
simple_ πattr get a simple #[foo(bar)] attribute, returning βbarβ - get_
struct_ πfields - get_
zero_ πvariant Helper function to get the variant with discriminant zero (implicit or explicit). - parse_
int_ πexpr