We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebeaeb3 commit b6b8b5aCopy full SHA for b6b8b5a
src/distributions/slice.rs
@@ -85,7 +85,7 @@ impl<'a, T> Slice<'a, T> {
85
}
86
87
/// Returns the count of choices in this distribution
88
- pub fn choices(&self) -> NonZeroUsize {
+ pub fn num_choices(&self) -> NonZeroUsize {
89
// Safety: at construction time, it was ensured that the slice was
90
// non-empty, as such the length can never be 0.
91
unsafe { NonZeroUsize::new_unchecked(self.slice.len()) }
0 commit comments