Crate impl_tools_lib
source ·Expand description
Impl-tools-lib
To implement the proc-macros, copy and modify the
impl-tools
crate, which is
merely documentation plus wrappers around this crate.
Modules
- Implementation of the
#[autoimpl]
attribute - Custom version of
syn
fields types supporting initializers - Custom version of
syn
generics supporting ‘X: trait’ bound
Structs
- Autoimpl for types supporting
Deref
- Tool to make a formatted [
Ident
] #[impl_default]
attribute- Contents of
impl_scope!
- Simple, allocation-free path representation
- A struct with a single instantiation
- A field of a
Singleton
- A
Scope
plus field values
Enums
- Content of items supported by
Scope
that are not common to all variants
Traits
- Attribute rule for
Scope
Functions
- Helper fn which can be passed to
Scope::apply_attrs