fn seen_weight(&self, unit: &Unit<C>, committee: &[ValidatorIndex]) -> Weight {
        let to_weight = |&idx: &ValidatorIndex| self.state.weight(idx);
        let is_seen = |&&idx: &&ValidatorIndex| self.can_see(unit, idx);
        committee.iter().filter(is_seen).map(to_weight).sum()
    }
/// Returns the total weight of the `committee`'s members whose message in this horizon is seen
/// by `unit`.
Returns the total weight of the `committee`'s members whose message in this horizon is seen
by `unit`.
Returns the total weight of the ` committee ` ' s members whose message in this horizon is seen by ` unit ` .
fn seen_weight(&self, unit: &Unit<C>, committee: &[ValidatorIndex]) -> Weight {
        let to_weight = |&idx: &ValidatorIndex| self.state.weight(idx);
        let is_seen = |&&idx: &&ValidatorIndex| self.can_see(unit, idx);
        committee.iter().filter(is_seen).map(to_weight).sum()
    }
fn seen_weight ( & self , unit : & Unit < C > , committee : & [ ValidatorIndex ] ) -> Weight { let to_weight = | & idx : & ValidatorIndex | self . state . weight ( idx ) ; let is_seen = | & & idx : & & ValidatorIndex | self . can_see ( unit , idx ) ; committee . iter ( ) . filter ( is_seen ) . map ( to_weight ) . sum ( ) }
Returns the total weight of the `committee`'s members whose message in this horizon is seen
by `unit`.
Returns the total weight of the ` committee ` ' s members whose message in this horizon is seen by ` unit ` .
&self
unit
&Unit<C>
committee
&[ValidatorIndex]
&self
unit
&Unit<C>
committee
&[ValidatorIndex]