intaglio 1.13.3

UTF-8 string and byte string interner and symbol table
Documentation
use crate::Symbol;

impl PartialEq<u32> for Symbol {
    #[inline]
    fn eq(&self, other: &u32) -> bool {
        self.id() == *other
    }
}

impl PartialEq<&u32> for Symbol {
    #[inline]
    fn eq(&self, other: &&u32) -> bool {
        self.id() == **other
    }
}

impl PartialEq<Symbol> for u32 {
    #[inline]
    fn eq(&self, other: &Symbol) -> bool {
        *self == other.id()
    }
}

impl PartialEq<&Symbol> for u32 {
    #[inline]
    fn eq(&self, other: &&Symbol) -> bool {
        *self == other.id()
    }
}

impl PartialEq<u32> for &Symbol {
    #[inline]
    fn eq(&self, other: &u32) -> bool {
        self.id() == *other
    }
}

impl PartialEq<Symbol> for &u32 {
    #[inline]
    fn eq(&self, other: &Symbol) -> bool {
        **self == other.id()
    }
}