I'm amazed by what the #RustLang #mockall crate achieves, but this one little remark to generic methods pretty much prevents a significant portion of the use cases I have for it: "The only restrictions on mocking generic methods are that all generic parameters must be 'static, and generic lifetime parameters are not allowed.". https://docs.rs/mockall/#generic-methods
This entry was edited (1 year ago)
Ugvx
•silwol
•