pub(crate) fn has_endorsement(&self, uhash: &C::Hash, vidx: ValidatorIndex) -> bool {
        self.endorsements
            .get(uhash)
            .map(|vmap| vmap[vidx].is_some())
            .unwrap_or(false)
            || self
                .incomplete_endorsements
                .get(uhash)
                .map(|ends| ends.contains_key(&vidx))
                .unwrap_or(false)
    }
/// Returns whether this state already includes an endorsement of `uhash` by `vidx`.
Returns whether this state already includes an endorsement of `uhash` by `vidx`.
Returns whether this state already includes an endorsement of ` uhash ` by ` vidx ` .
pub(crate) fn has_endorsement(&self, uhash: &C::Hash, vidx: ValidatorIndex) -> bool {
        self.endorsements
            .get(uhash)
            .map(|vmap| vmap[vidx].is_some())
            .unwrap_or(false)
            || self
                .incomplete_endorsements
                .get(uhash)
                .map(|ends| ends.contains_key(&vidx))
                .unwrap_or(false)
    }
pub ( crate ) fn has_endorsement ( & self , uhash : & C :: Hash , vidx : ValidatorIndex ) -> bool { self . endorsements . get ( uhash ) . map ( | vmap | vmap [ vidx ] . is_some ( ) ) . unwrap_or ( false ) || self . incomplete_endorsements . get ( uhash ) . map ( | ends | ends . contains_key ( & vidx ) ) . unwrap_or ( false ) }
Returns whether this state already includes an endorsement of `uhash` by `vidx`.
Returns whether this state already includes an endorsement of ` uhash ` by ` vidx ` .
&self
uhash
&C::Hash
vidx
ValidatorIndex
&self
uhash
&C::Hash
vidx
ValidatorIndex