Skip to content

Commit fe514df

Browse files
committed
impl PartialEq<[u32]> for Primes
1 parent 32419d4 commit fe514df

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/wrapper.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,13 @@ impl<const N: usize> PartialEq<Primes<N>> for &[Underlying] {
395395
}
396396
}
397397

398+
impl<const N: usize> PartialEq<[Underlying]> for Primes<N> {
399+
#[inline]
400+
fn eq(&self, other: &[Underlying]) -> bool {
401+
&self.primes == &other
402+
}
403+
}
404+
398405
// endregion: PartialEq
399406

400407
// region: PartialOrd

0 commit comments

Comments
 (0)