-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support arbitrary 🥁 collections #155
Comments
ok, I think this idea cannot work.
|
You can only commit to a single blanket impl per trait, and it severely restricts downstream impls, so I'm opposed to introducing any new blanket impl. However, this may be possible by instead introducing a |
i ended up not needing this (turns out smallvec already supports |
I would like to be able to
derive(Arbitrary)
on a custom struct that happens to contain various collections that aren't in std (e.g.DashMap
,SmallVec
). I could add optional dependencies on dashmap and smallvec directly to thearbitrary
crate, but I'd prefer to do this more generically so that it works for any collection.I tried to do that as follows:
which didn't work:
I have two questions:
The text was updated successfully, but these errors were encountered: