pub(crate) fn hash(&self) -> Digest {
        let serialized_chainspec = self.to_bytes().unwrap_or_else(|error| {
            error!(%error, "failed to serialize chainspec");
            vec![]
        });
        Digest::hash(&serialized_chainspec)
    }
/// Serializes `self` and hashes the resulting bytes.
Serializes `self` and hashes the resulting bytes.
Serializes ` self ` and hashes the resulting bytes .
pub(crate) fn hash(&self) -> Digest {
        let serialized_chainspec = self.to_bytes().unwrap_or_else(|error| {
            error!(%error, "failed to serialize chainspec");
            vec![]
        });
        Digest::hash(&serialized_chainspec)
    }
pub ( crate ) fn hash ( & self ) -> Digest { let serialized_chainspec = self . to_bytes ( ) . unwrap_or_else ( | error | { error ! ( error " " ) ; vec ! [ ] } ) ; Digest :: hash ( & serialized_chainspec ) }
Serializes `self` and hashes the resulting bytes.
Serializes ` self ` and hashes the resulting bytes .
&self
&self