pub(crate) fn is_majority(&self, granted: &BTreeSet<C::NodeId>) -> bool {
        for config in self.configs.iter() {
            if !Self::is_majority_of_single_config(granted, config) {
                return false;
            }
        }

        true
    }
/// Return true if the given set of ids constitutes a majority.
///
/// I.e. the id set includes a majority of every config.
Return true if the given set of ids constitutes a majority.
Return true if the given set of ids constitutes a majority .
pub(crate) fn is_majority(&self, granted: &BTreeSet<C::NodeId>) -> bool {
        for config in self.configs.iter() {
            if !Self::is_majority_of_single_config(granted, config) {
                return false;
            }
        }
        true
    }
pub ( crate ) fn is_majority ( & self , granted : & BTreeSet < C :: NodeId > ) -> bool { for config in self . configs . iter ( ) { if ! Self :: is_majority_of_single_config ( granted , config ) { return false ; } } true }
Return true if the given set of ids constitutes a majority.
Return true if the given set of ids constitutes a majority .
&self
granted
&BTreeSet<C::NodeId>