compiler/rust/bitset: Make BitSetIter private

Reviewed-by: Mary Guillemard <mary.guillemard@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32812>
This commit is contained in:
Mel Henning
2024-12-23 20:14:02 -05:00
committed by Marge Bot
parent 06cd3c7fa3
commit de47702dde

View File

@@ -50,7 +50,7 @@ impl BitSet {
true
}
pub fn iter(&self) -> BitSetIter<'_> {
pub fn iter(&self) -> impl '_ + Iterator<Item = usize> {
BitSetIter::new(self)
}
@@ -220,7 +220,7 @@ impl Not for BitSet {
}
}
pub struct BitSetIter<'a> {
struct BitSetIter<'a> {
set: &'a BitSet,
w: usize,
mask: u32,