pub(crate) fn unit_hash(&self) -> Option<C::Hash> {
        match self {
            Vertex::Unit(swunit) => Some(swunit.hash()),
            Vertex::Evidence(_) | Vertex::Endorsements(_) | Vertex::Ping(_) => None,
        }
    }
/// Returns the unit hash of this vertex (if it is a unit).
Returns the unit hash of this vertex (if it is a unit).
Returns the unit hash of this vertex ( if it is a unit ) .
pub(crate) fn unit_hash(&self) -> Option<C::Hash> {
        match self {
            Vertex::Unit(swunit) => Some(swunit.hash()),
            Vertex::Evidence(_) | Vertex::Endorsements(_) | Vertex::Ping(_) => None,
        }
    }
pub ( crate ) fn unit_hash ( & self ) -> Option < C :: Hash > { match self { Vertex :: Unit ( swunit ) => Some ( swunit . hash ( ) ) , Vertex :: Evidence ( _ ) | Vertex :: Endorsements ( _ ) | Vertex :: Ping ( _ ) => None , } }
Returns the unit hash of this vertex (if it is a unit).
Returns the unit hash of this vertex ( if it is a unit ) .
&self
&self