Expand description
Converts any impl Trait
in traits, impl blocks, or bare functions into method generics
This can be used to work around language issues with impl Trait
, such as a lack of support in type aliases.
It also allows trait mocking with mockall, for traits that use impl Trait in arguments.
Attribute Macrosยง
- into_
generic - Rewrites
impl Trait
into a method generic on functions, trait definitions, and trait implementations.