mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-21 01:38:23 +02:00
compiler/rust/bitset: Implement Eq and PartialEq for ConstBitSet
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/42200>
This commit is contained in:
parent
42fd600dc0
commit
4379dc141d
1 changed files with 1 additions and 1 deletions
|
|
@ -184,7 +184,7 @@ fn find_next_unset(words: &[u32], start: BitIndex) -> BitIndex {
|
|||
/// The fixed size W is in units of 32-bit words. This is due to a Rust
|
||||
/// restriction which prevents us from doing math on constants which size
|
||||
/// arrays.
|
||||
#[derive(Clone, Copy)]
|
||||
#[derive(Clone, Copy, Eq, PartialEq)]
|
||||
pub struct ConstBitSet<const W: usize, K = usize> {
|
||||
words: [u32; W],
|
||||
phantom: PhantomData<K>,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue