rand::distributions -> distr; split uniform module #1470
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
CHANGELOG.md
entrySummary
This includes the contents of and will need a rebase after #1469, so the first real commit here is "Cfg-gate whole rand::seq::index module".
Implements #1381.
Motivation
I have long found the
uniform.rs
module hard to navigate, hence the split there.Putting the contents in the existing float/int/other modules would need some quirky imports to keep the
uniform
public module intact (I also considered making this module private and directly re-exporting the contents, but it seems to serve a purpose, especially for documentation and to house the implementing types likeUniformInt
). Using newuniform/float.rs
etc. modules results in a soft name-clash; the included path renames look better in my editor at least, but I can go the more orthodox approach if preferred.