Skip to content

Commit

Permalink
Make the new undocumented functions private (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
jneem authored Jan 2, 2025
1 parent 7e4cbb7 commit 5d326f4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/vector/focus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,10 @@ where
self.get_mut(index).expect("index out of bounds")
}

pub fn index_many_mut<const N: usize>(&mut self, indices: [usize; N]) -> [&mut A; N] {
/// Gets mutable references for a non-overlapping collection of indices.
///
/// Panics if any indices are non-unique.
fn index_many_mut<const N: usize>(&mut self, indices: [usize; N]) -> [&mut A; N] {
self.get_many_mut(indices)
.expect("index out of bounds or overlapping")
}
Expand Down Expand Up @@ -971,7 +974,7 @@ where
Some(&mut self.get_focus()[target_phys_index])
}

pub fn get_many<const N: usize>(
fn get_many<const N: usize>(
&mut self,
pool: &RRBPool<A>,
indices: [usize; N],
Expand Down
3 changes: 3 additions & 0 deletions src/vector/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2682,6 +2682,9 @@ mod test {
}

proptest! {
// Miri is slow, so we ignore long-ish tests to keep the test
// time manageable. For some property tests, it may be worthwhile
// enabling them in miri with reduced iteration counts.
#[cfg_attr(miri, ignore)]
#[test]
fn iter(ref vec in vec(i32::ANY, 0..1000)) {
Expand Down

0 comments on commit 5d326f4

Please sign in to comment.