Skip to content

Commit

Permalink
Update ArrayOrVecHelper doc comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ronnodas committed Jan 13, 2025
1 parent 57fff6e commit 0b96072
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lazy_buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<T>;
type Length: MaybeConstUsize;
Expand All @@ -118,6 +118,7 @@ pub trait ArrayOrVecHelper: BorrowMut<[usize]> {

fn from_fn<F: Fn(usize) -> 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,
Expand Down

0 comments on commit 0b96072

Please sign in to comment.