pub(crate) fn iter_correct<'a>(
        &'a self,
        state: &'a State<C>,
    ) -> impl Iterator<Item = &'a Unit<C>> {
        let to_unit = move |vh: &C::Hash| state.unit(vh);
        self.iter_correct_hashes().map(to_unit)
    }
/// Returns an iterator over all honest validators' latest units.
Returns an iterator over all honest validators' latest units.
Returns an iterator over all honest validators ' latest units .
pub(crate) fn iter_correct<'a>(
        &'a self,
        state: &'a State<C>,
    ) -> impl Iterator<Item = &'a Unit<C>> {
        let to_unit = move |vh: &C::Hash| state.unit(vh);
        self.iter_correct_hashes().map(to_unit)
    }
pub ( crate ) fn iter_correct < ' a > ( & ' a self , state : & ' a State < C > , ) -> impl Iterator < Item = & ' a Unit < C > > { let to_unit = move | vh : & C :: Hash | state . unit ( vh ) ; self . iter_correct_hashes ( ) . map ( to_unit ) }
Returns an iterator over all honest validators' latest units.
Returns an iterator over all honest validators ' latest units .
&'a self
state
&'a State<C>
&'a self
state
&'a State<C>