-
-
Notifications
You must be signed in to change notification settings - Fork 447
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
impl SampleRange for user types #146
Comments
Specifically,
|
Is there a reason |
As an alternative to making the fields of Depending on the performance of Edit: benchmark results here |
Implemented as part of #274. |
Hi I would like to bump this problem already mentioned in
#114
#82
How does one exactly implement SampleRange for user types? I was just about to write a snippet for rand on https://brson.github.io/rust-cookbook/ and while implementing
Rand
is enough to get some random sample, I see no way to implementSampleRange
due toRange
being private. This pretty much defeats the purpose ofSampleRange
trait as the user needs to fit the values into required range by hand.The text was updated successfully, but these errors were encountered: