pub(crate) fn iter_banned_idx(&self) -> impl Iterator<Item = ValidatorIndex> + '_ {
        self.iter()
            .enumerate()
            .filter(|(_, v)| v.banned)
            .map(|(idx, _)| ValidatorIndex::from(idx as u32))
    }
/// Returns an iterator of all indices of banned validators.
Returns an iterator of all indices of banned validators.
Returns an iterator of all indices of banned validators .
pub(crate) fn iter_banned_idx(&self) -> impl Iterator<Item = ValidatorIndex> + '_ {
        self.iter()
            .enumerate()
            .filter(|(_, v)| v.banned)
            .map(|(idx, _)| ValidatorIndex::from(idx as u32))
    }
pub ( crate ) fn iter_banned_idx ( & self ) -> impl Iterator < Item = ValidatorIndex > + ' _ { self . iter ( ) . enumerate ( ) . filter ( | ( _ , v ) | v . banned ) . map ( | ( idx , _ ) | ValidatorIndex :: from ( idx as u32 ) ) }
Returns an iterator of all indices of banned validators.
Returns an iterator of all indices of banned validators .
&self
&self