Add a crate-custom test harness
This commit is contained in:
parent
e4487ad391
commit
d697dd44d1
7 changed files with 582 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue