From 0b96072371205948e0bdf67669537338b4534382 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 e511e23b3..26c897398 100644 --- a/src/lazy_buffer.rs +++ b/src/lazy_buffer.rs @@ -100,8 +100,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; @@ -118,6 +118,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,