You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At present, all of these have signatures that require either static function (testers, filters), or static function/closures (global functions). Instead, all of these should use traits so that any structure with arbitrary state can be used as a test/filter/global function handler. Here's what I'm imagining:
At present, all of these have signatures that require either static function (testers, filters), or static function/closures (global functions). Instead, all of these should use traits so that any structure with arbitrary state can be used as a test/filter/global function handler. Here's what I'm imagining:
For backwards compatibility and ease-of-use, you can provide a blanket impl for fn-like types. For instance, for
Tester
, we can do:The text was updated successfully, but these errors were encountered: