Crate frunk_proc_macro_helpers
source ·Expand description
Frunk Proc Macro internals
This library holds common logic for procedural macros used by frunk
Links:
Structs§
- Represents the binding of a struct or enum variant’s fields to a corresponding set of similarly named local variables.
Enums§
Functions§
- Given an index and an expression or pattern, creates an AST for the corresponding Coproduct constructor, which may itself be used as an expression or a pattern.
- Given a list of types, creates an AST for the corresponding Coproduct type.
- Given the length of a Coproduct type, generates an “unreachable” match arm, matching the CNil case in order to work around limitations in the compiler’s exhaustiveness checking.
- Given a list of expressions or patterns, creates an AST for the corresponding HList constructor, which may itself be used as an expression or a pattern.
- Given a list of types, creates an AST for the corresponding HList type.
- Given an Ident returns an AST for its type level representation based on the enums generated in frunk_core::labelled.
- Returns an Ident
- Returns the idents in a path like expression in reverse
- Parses a TokenStream (usually received as input into a custom derive function), into a syn MacroInput AST, which is nice.