Crate derive_deftly_macros

Crate derive_deftly_macros 

Source
Expand description

Macros for derive_deftly

Import derive_deftly instead.

ModulesΒ§

_doc_hacking πŸ”’
Hacking on derive-deftly (HACKING.md)
_doc_notes πŸ”’
Notes and plans (NOTES.md)
accum πŸ”’
derive_deftly_engine!(), parsing accumulations
adhoc πŸ”’
Macro impl for adhoc template application derive_deftly_adhoc!
adviseable πŸ”’
errors with compatibility advice
approx_equal πŸ”’
Implementation of ${approx_equal ..}, and support functions
beta πŸ”’
Handle beta_deftly template option, when beta cargo feature enabled
boolean πŸ”’
Handling of boolean evaluation (conditions)
check πŸ”’
Implementation of the expect option
compat_syn_2 πŸ”’
Definitions for compatibility with syn 2
compat_syn_common πŸ”’
Definitions for compatibility with syn, common to 1 and 2
concat πŸ”’
Implementation of string concatenation ${concat }
dbg_allkw πŸ”’
define πŸ”’
Macro impl for defining a template define_derive_deftly!
derive πŸ”’
Macro impl for capturing the driver #[derive(Deftly)]
engine πŸ”’
derive_deftly_engine!()
expand πŸ”’
Expansion of a template into output tokens
framework πŸ”’
Core types and traits for parsing and expansion
general_context πŸ”’
Contexts that might not include a driver
meta πŸ”’
#[deftly(...)] meta attributes
modules πŸ”’
Macro modules, define_derive_deftly_module
options πŸ”’
β€œOptions”, keyword modifiers for an expansion
paste πŸ”’
Implementation of identifier pasting expansion ${paste }
prelude πŸ”’
private prelude for proc macro stuff
repeat πŸ”’
Handling of repetition, and also useful methods on context
semver πŸ”’
Macro impl for template_export_semver_check!
syntax πŸ”’
Template syntax
utils πŸ”’
Utilities for proc macro implementation

MacrosΒ§

define_derive_deftly
Define a reuseable template
define_derive_deftly_module
Define a module with reuseable template definitions (beta)
derive_deftly_adhoc
Expand an ad-hoc template, on a data structure decorated #[derive_deftly_adhoc]
derive_deftly_engine
Template expansion engine, internal
template_export_semver_check
Check semver compatibility, for a crate which exports macros

FunctionsΒ§

wrap_macro_func πŸ”’
Wraps an actual macro implementation function that uses a proc_macro2 implementation to expose a proc_macro implementation instead.

Derive MacrosΒ§

Deftly
Perform ad-hoc templating driven by a data structure