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
Instead of dyn Any I'd like to iterate over dyn MyTrait (dyn Checkable in the example below) with the assumption that all fields in the struct implement that trait (else, there should be a compile error).
Instead of
dyn Any
I'd like to iterate overdyn MyTrait
(dyn Checkable
in the example below) with the assumption that all fields in the struct implement that trait (else, there should be a compile error).Example
Manual implementration
Code in context: https://github.com/juspay/nix-browser/blob/913c505d501efd15beff7388404d9a7f4e4e4c58/crates/nix_health/src/lib.rs#L24-L48
The text was updated successfully, but these errors were encountered: