pub fn hash_component<H>(self, hasher: &mut H)
    where
        H: hash::Hasher,
    {
        match self {
            ComponentRef::Crate(s) => {
                CRATE.hash(hasher);
                s.hash(hasher);
            }
            ComponentRef::Str(s) => {
                STRING.hash(hasher);
                s.hash(hasher);
            }
            ComponentRef::Id(c) => {
                ID.hash(hasher);
                c.hash(hasher);
            }
        }
    }
/// Hash the current component to the given hasher.
Hash the current component to the given hasher.
Hash the current component to the given hasher .
pub fn hash_component<H>(self, hasher: &mut H)
    where
        H: hash::Hasher,
    {
        match self {
            ComponentRef::Crate(s) => {
                CRATE.hash(hasher);
                s.hash(hasher);
            }
            ComponentRef::Str(s) => {
                STRING.hash(hasher);
                s.hash(hasher);
            }
            ComponentRef::Id(c) => {
                ID.hash(hasher);
                c.hash(hasher);
            }
        }
    }
pub fn hash_component < H > ( self , hasher : & mut H ) where H : hash :: Hasher , { match self { ComponentRef :: Crate ( s ) => { CRATE . hash ( hasher ) ; s . hash ( hasher ) ; } ComponentRef :: Str ( s ) => { STRING . hash ( hasher ) ; s . hash ( hasher ) ; } ComponentRef :: Id ( c ) => { ID . hash ( hasher ) ; c . hash ( hasher ) ; } } }
Hash the current component to the given hasher.
Hash the current component to the given hasher .
self
hasher
&mut H
self
hasher
&mut H