#auto #lifetimes #impl #add #trait #lifetime #macro #arguments

macro auto-add-lifetimes-to-impl

Automatically add lifetimes to impl given the trait, structure or any arguments have lifetime arguments. Mainly for use in macros

1 unstable release

0.1.0 Dec 8, 2021

#1586 in Procedural macros

MIT license

4KB
67 lines

Auto add lifetimes to impl

Automatically picks out lifetime arguments in impl items and adds them as constraints. Mainly for use in macros

See examples/main.rs for use case

Dependencies

~0.7–1MB
~26K SLoC