Crate facet_macros_emit

Crate facet_macros_emit 

Source

Structs§

AsPhantomData
Display wrapper that outputs generic parameters as a PhantomData
BoundedGenericParam
The name of a generic parameter with bounds
BoundedGenericParams
Stores different representations of generic parameters for implementing traits.
LifetimeName
PAttrs
Parsed attributes
PContainer
Parsed container
PEnum
Parsed enum (given attributes etc.)
PName
A parsed name, which includes the raw name and the effective name.
PStruct
Parse struct
PStructField
Parsed field
PVariant
Parsed enum variant
WithBounds
Display wrapper that shows generic parameters with their bounds
WithoutBounds
Display wrapper that shows generic parameters without their bounds

Enums§

GenericParamName
The name of a generic parameter
IdentOrLiteral
For struct fields, they can either be identifiers (my_struct.foo) or literals (my_struct.2) — for tuple structs.
PAttr
Parsed attr
PFacetAttr
All the supported facet attributes, e.g. #[facet(sensitive)] #[facet(rename_all)], etc.
PRepr
PStructKind
Parsed struct kind, modeled after StructKind.
PVariantKind
Parsed enum variant kind
PrimitiveRepr
RenameRule
Represents different case conversion strategies for renaming. All strategies assume an initial input of snake_case (e.g., foo_bar).

Functions§

facet_macros