pub fn disable(c: &T::ValidatorId) -> sp_std::result::Result<bool, ()> {
        Self::validators()
            .iter()
            .position(|i| i == c)
            .map(Self::disable_index)
            .ok_or(())
    }
/// Disable the validator identified by `c`. (If using with the staking module,
/// this would be their *stash* account.)
///
/// Returns `Ok(true)` if more than `DisabledValidatorsThreshold` validators in current
/// session is already disabled.
/// If used with the staking module it allows to force a new era in such case.
Disable the validator identified by `c`. (If using with the staking module,
this would be their *stash* account.)

Returns `Ok(true)` if more than `DisabledValidatorsThreshold` validators in current
session is already disabled.
If used with the staking module it allows to force a new era in such case.
Disable the validator identified by ` c ` . ( If using with the staking module this would be their * stash * account . ) Returns ` Ok ( true ) ` if more than ` DisabledValidatorsThreshold ` validators in current session is already disabled . If used with the staking module it allows to force a new era in such case .
pub fn disable(c: &T::ValidatorId) -> sp_std::result::Result<bool, ()> {
        Self::validators()
            .iter()
            .position(|i| i == c)
            .map(Self::disable_index)
            .ok_or(())
    }
pub fn disable ( c : & T :: ValidatorId ) -> sp_std :: result :: Result < bool , ( ) > { Self :: validators ( ) . iter ( ) . position ( | i | i == c ) . map ( Self :: disable_index ) . ok_or ( ( ) ) }
Disable the validator identified by `c`.
Disable the validator identified by ` c ` .
c
&T::ValidatorId
c
&T::ValidatorId