-
-
Notifications
You must be signed in to change notification settings - Fork 486
Closed
Labels
C-docsDocumentationDocumentationE-questionParticipation: opinions wantedParticipation: opinions wanted
Description
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 implement SampleRange due to Range being private. This pretty much defeats the purpose of SampleRange trait as the user needs to fit the values into required range by hand.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
C-docsDocumentationDocumentationE-questionParticipation: opinions wantedParticipation: opinions wanted