#lifetime #arguments #automatic #add #impl #mainly #traits

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

#21 in #mainly

MIT license

5KB
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

~1.5MB
~33K SLoC