File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 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 {
100100 }
101101}
102102
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.
105105pub trait ArrayOrVecHelper : BorrowMut < [ usize ] > {
106106 type Item < T > ;
107107 type Length : MaybeConstUsize ;
@@ -118,6 +118,7 @@ pub trait ArrayOrVecHelper: BorrowMut<[usize]> {
118118
119119 fn from_fn < F : Fn ( usize ) -> usize > ( k : Self :: Length , f : F ) -> Self ;
120120
121+ /// Create an array/vec/... of indices from 0 to `len - 1`.
121122 fn start ( len : Self :: Length ) -> Self
122123 where
123124 Self : Sized ,
You can’t perform that action at this time.
0 commit comments