Crate portrait_framework

Source
Expand description

Framework for developing portrait filler macros.

§Example

Macros§

proc_macro_derive_filler
One-line wrapper that declares a filler macro.
proc_macro_impl_filler
One-line wrapper that declares a filler macro.

Structs§

DeriveContext
Available context parameters passed to generators.
ImplContext
Available context parameters passed to generators.
ImplItemMap
Indexes items in an impl block by namespaced identifier.
NoArgs
No arguments accepted by the macro.
TraitItemMap
Indexes items in a trait by namespaced identifier.

Traits§

FillDerive
Determines how to derive an impl.
FillImpl
Determines how to fill an impl block.
GenerateDerive
Generates missing items.
GenerateImpl
Generates missing items.

Functions§

complete_derive
Invokes the generator on each unimplemented item and returns a clone of impl_block with the generated items.
complete_impl
Invokes the generator on each unimplemented item and returns a clone of impl_block with the generated items.
completer_derive_filler
Shorthand from derive_filler to complete_derive (proc_macro version).
completer_derive_filler2
Shorthand from derive_filler to complete_derive (proc_macro2 version).
completer_impl_filler
Shorthand from impl_filler to complete_impl (proc_macro version).
completer_impl_filler2
Shorthand from impl_filler to complete_impl (proc_macro2 version).
derive_filler
Parses the macro input directly and passes them to the filler.
impl_filler
Parses the macro input directly and passes them to the filler.
subtract_items
Shorthand for TraitItemMap::new().minus(ImplItemMap::new()).