1use crate::Symbol;
2
3impl PartialEq<u32> for Symbol {
4 #[inline]
5 fn eq(&self, other: &u32) -> bool {
6 self.id() == *other
7 }
8}
9
10impl PartialEq<&u32> for Symbol {
11 #[inline]
12 fn eq(&self, other: &&u32) -> bool {
13 self.id() == **other
14 }
15}
16
17impl PartialEq<Symbol> for u32 {
18 #[inline]
19 fn eq(&self, other: &Symbol) -> bool {
20 *self == other.id()
21 }
22}
23
24impl PartialEq<&Symbol> for u32 {
25 #[inline]
26 fn eq(&self, other: &&Symbol) -> bool {
27 *self == other.id()
28 }
29}
30
31impl PartialEq<u32> for &Symbol {
32 #[inline]
33 fn eq(&self, other: &u32) -> bool {
34 self.id() == *other
35 }
36}
37
38impl PartialEq<Symbol> for &u32 {
39 #[inline]
40 fn eq(&self, other: &Symbol) -> bool {
41 **self == other.id()
42 }
43}