File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -100,8 +100,8 @@ impl MaybeConstUsize for usize {
100
100
}
101
101
}
102
102
103
- /// A type holding indices of elements in a pool or buffer of items from an inner iterator
104
- /// and used to pick out different combinations in a generic way.
103
+ /// A type holding indices, mostly used to pick out different combinations of elements from
104
+ /// a pool or buffer of items from an inner iterator in a generic way.
105
105
pub trait ArrayOrVecHelper : BorrowMut < [ usize ] > {
106
106
type Item < T > ;
107
107
type Length : MaybeConstUsize ;
@@ -118,6 +118,7 @@ pub trait ArrayOrVecHelper: BorrowMut<[usize]> {
118
118
119
119
fn from_fn < F : Fn ( usize ) -> usize > ( k : Self :: Length , f : F ) -> Self ;
120
120
121
+ /// Create an array/vec/... of indices from 0 to `len - 1`.
121
122
fn start ( len : Self :: Length ) -> Self
122
123
where
123
124
Self : Sized ,
You can’t perform that action at this time.
0 commit comments