pub fn select(&self, public_key: PublicKey) -> impl Iterator<Item = &SeigniorageAllocation> {
        self.seigniorage_allocations
            .iter()
            .filter(move |allocation| match allocation {
                SeigniorageAllocation::Validator {
                    validator_public_key,
                    ..
                } => public_key == *validator_public_key,
                SeigniorageAllocation::Delegator {
                    delegator_public_key,
                    ..
                } => public_key == *delegator_public_key,
            })
    }
/// Returns all seigniorage allocations that match the provided public key
/// using the following criteria:
/// * If the match candidate is a validator allocation, the provided public key is matched
///   against the validator public key.
/// * If the match candidate is a delegator allocation, the provided public key is matched
///   against the delegator public key.
Returns all seigniorage allocations that match the provided public key
using the following criteria:
If the match candidate is a validator allocation, the provided public key is matched
against the validator public key.
If the match candidate is a delegator allocation, the provided public key is matched
against the delegator public key.
Returns all seigniorage allocations that match the provided public key using the following criteria : If the match candidate is a validator allocation the provided public key is matched against the validator public key . If the match candidate is a delegator allocation the provided public key is matched against the delegator public key .
pub fn select(&self, public_key: PublicKey) -> impl Iterator<Item = &SeigniorageAllocation> {
        self.seigniorage_allocations
            .iter()
            .filter(move |allocation| match allocation {
                SeigniorageAllocation::Validator {
                    validator_public_key,
                    ..
                } => public_key == *validator_public_key,
                SeigniorageAllocation::Delegator {
                    delegator_public_key,
                    ..
                } => public_key == *delegator_public_key,
            })
    }
pub fn select ( & self , public_key : PublicKey ) -> impl Iterator < Item = & SeigniorageAllocation > { self . seigniorage_allocations . iter ( ) . filter ( move | allocation | match allocation { SeigniorageAllocation :: Validator { validator_public_key , .. } => public_key == * validator_public_key , SeigniorageAllocation :: Delegator { delegator_public_key , .. } => public_key == * delegator_public_key , } ) }
Returns all seigniorage allocations that match the provided public key
using the following criteria:
 If the match candidate is a validator allocation, the provided public key is matched
against the validator public key.
Returns all seigniorage allocations that match the provided public key using the following criteria : If the match candidate is a validator allocation the provided public key is matched against the validator public key .
&self
public_key
PublicKey
&self
public_key
PublicKey