MacrosΒ§
StructsΒ§
- AnyBit
Pattern - Checked
BitPattern - Contiguous
- NoUninit
- Pod
- Representation π
- Transparent
Wrapper - Variant
Discriminant πIterator - Wrapped
Type π - Zeroable
EnumsΒ§
- Integer
Repr π - Repr π
ConstantsΒ§
TraitsΒ§
FunctionsΒ§
- bytemuck_
crate_ name - enum_
has_ πfields - generate_
assert_ πno_ padding - Check that a struct or enum has no padding by asserting that the size of the type is equal to the sum of the size of itβs fields and discriminant (for enums, this must be asserted for each variant).
- generate_
checked_ πbit_ pattern_ enum - generate_
checked_ πbit_ pattern_ enum_ with_ fields - generate_
checked_ πbit_ pattern_ enum_ without_ fields - generate_
checked_ πbit_ pattern_ struct - generate_
enum_ πdiscriminant - generate_
fields_ πare_ trait - Check that all fields implement a given trait
- get_
enum_ πdiscriminant - Get the type of an enumβs discriminant.
- get_
enum_ πvariants - get_
field_ πtypes - get_
fields π - Extract the
Fieldsoff aDeriveInput, or, in theenumcase, off those of theenum_variant, when provided (e.g., forZeroable). - get_
repr π - get_
struct_ πfields - get_
type_ πfrom_ simple_ attr - get a simple
#[foo(bar)]attribute, returningbar - get_
wrapped_ πtype_ from_ stream - get_
zero_ πvariant - Helper function to get the variant with discriminant zero (implicit or explicit).
- parse_
int_ πexpr