Add a crate-custom test harness

This commit is contained in:
Nadrieril 2024-03-04 16:57:32 +01:00
parent e4487ad391
commit d697dd44d1
7 changed files with 582 additions and 0 deletions

View file

@ -49,6 +49,12 @@ pub mod index {
}
}
impl<V> FromIterator<V> for IdxContainer<usize, V> {
fn from_iter<T: IntoIterator<Item = V>>(iter: T) -> Self {
Self(iter.into_iter().enumerate().collect())
}
}
#[derive(Debug)]
pub struct IdxSet<T>(pub rustc_hash::FxHashSet<T>);
impl<T: Idx> IdxSet<T> {