From a56b5c750b4a899adbe1bed15d2efdbbfc254b0b Mon Sep 17 00:00:00 2001 From: Ronno Das Date: Mon, 13 Jan 2025 13:16:44 +0100 Subject: [PATCH] Update ArrayOrVecHelper doc comments --- src/lazy_buffer.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/lazy_buffer.rs b/src/lazy_buffer.rs index 565b0f2e3..c04f4edbc 100644 --- a/src/lazy_buffer.rs +++ b/src/lazy_buffer.rs @@ -99,8 +99,8 @@ impl MaybeConstUsize for usize { } } -/// A type holding indices of elements in a pool or buffer of items from an inner iterator -/// and used to pick out different combinations in a generic way. +/// A type holding indices, mostly used to pick out different combinations of elements from +/// a pool or buffer of items from an inner iterator in a generic way. pub trait ArrayOrVecHelper: BorrowMut<[usize]> { type Item; type Length: MaybeConstUsize; @@ -117,6 +117,7 @@ pub trait ArrayOrVecHelper: BorrowMut<[usize]> { fn from_fn usize>(k: Self::Length, f: F) -> Self; + /// Create an array/vec/... of indices from 0 to `len - 1`. fn start(len: Self::Length) -> Self where Self: Sized,