[][src]Crate frunk_proc_macro_helpers

Frunk Proc Macro internals

This library holds common logic for procedural macros used by frunk

Links:

  1. Source on Github
  2. Crates.io page

Functions

build_hcons_constr

Given a identifiers, creates an AST for building an HList (HCons) using those identifiers as accessors.

build_path_type
build_type_level_name_for

Given an Ident returns an AST for its type level representation based on the enums generated in frunk_core::labelled.

call_site_ident

Returns an Ident

find_idents_in_expr

Returns the idents in a path like expression in reverse

to_ast

Parses a TokenStream (usually received as input into a custom derive function), into a syn MacroInput AST, which is nice.