pub(crate) fn value(&self) -> Option<&C::ConsensusValue> {
        match self {
            Vertex::Unit(swunit) => swunit.wire_unit().value.as_ref(),
            Vertex::Evidence(_) | Vertex::Endorsements(_) | Vertex::Ping(_) => None,
        }
    }
/// Returns the consensus value mentioned in this vertex, if any.
///
/// These need to be validated before passing the vertex into the protocol state. E.g. if
/// `C::ConsensusValue` is a transaction, it should be validated first (correct signature,
/// structure, gas limit, etc.). If it is a hash of a transaction, the transaction should be
/// obtained _and_ validated. Only after that, the vertex can be considered valid.
Returns the consensus value mentioned in this vertex, if any.
These need to be validated before passing the vertex into the protocol state.
Returns the consensus value mentioned in this vertex if any . These need to be validated before passing the vertex into the protocol state .
pub(crate) fn value(&self) -> Option<&C::ConsensusValue> {
        match self {
            Vertex::Unit(swunit) => swunit.wire_unit().value.as_ref(),
            Vertex::Evidence(_) | Vertex::Endorsements(_) | Vertex::Ping(_) => None,
        }
    }
pub ( crate ) fn value ( & self ) -> Option < & C :: ConsensusValue > { match self { Vertex :: Unit ( swunit ) => swunit . wire_unit ( ) . value . as_ref ( ) , Vertex :: Evidence ( _ ) | Vertex :: Endorsements ( _ ) | Vertex :: Ping ( _ ) => None , } }
Returns the consensus value mentioned in this vertex, if any.
Returns the consensus value mentioned in this vertex if any .
&self
&self