add MixedBitSet::clear

This commit is contained in:
Rémy Rakic 2024-12-17 18:54:39 +00:00
parent f23a80a4c2
commit ef96965f44

View file

@ -1191,6 +1191,14 @@ impl<T: Idx> MixedBitSet<T> {
}
}
#[inline]
pub fn clear(&mut self) {
match self {
MixedBitSet::Small(set) => set.clear(),
MixedBitSet::Large(set) => set.clear(),
}
}
bit_relations_inherent_impls! {}
}