/// Computes the dealers index in the set of `NiDkgDealers.
///
/// # Panics:
/// * If the dealer is not included in `NiDkgDealers`.
Computes the dealers index in the set of `NiDkgDealers.
Computes the dealers index in the set of ` NiDkgDealers .
pub fn dealer_index_in_dealers_or_panic(dealers: &NiDkgDealers, dealer: NodeId) -> NodeIndex {
    dealers.position(dealer).unwrap_or_else(|| {
        panic!(
            "This operation requires node ({}) to be a dealer, but it is not.",
            dealer
        )
    })
}
pub fn dealer_index_in_dealers_or_panic ( dealers : & NiDkgDealers , dealer : NodeId ) -> NodeIndex { dealers . position ( dealer ) . unwrap_or_else ( | | { panic ! ( " " dealer ) } ) }
Computes the dealers index in the set of `NiDkgDealers.
Computes the dealers index in the set of ` NiDkgDealers .
dealers
&NiDkgDealers
dealer
NodeId
panics:
If the dealer is not included in `NiDkgDealers`.
If the dealer is not included in ` NiDkgDealers ` .