fn map_active_validator<F>(&mut self, f: F, timestamp: Timestamp) -> Option<Vec<Effect<C>>>
    where
        F: FnOnce(&mut ActiveValidator<C>, &State<C>) -> Vec<Effect<C>>,
    {
        let effects = f(self.active_validator.as_mut()?, &self.state);
        Some(self.add_new_own_vertices(effects, timestamp))
    }
/// Applies `f` if this is an active validator, otherwise returns `None`.
///
/// Newly created vertices are added to the state. If an equivocation of this validator is
/// detected, it gets deactivated.
Applies `f` if this is an active validator, otherwise returns `None`.
Newly created vertices are added to the state. If an equivocation of this validator is
detected, it gets deactivated.
Applies ` f ` if this is an active validator otherwise returns ` None ` . Newly created vertices are added to the state . If an equivocation of this validator is detected it gets deactivated .
fn map_active_validator<F>(&mut self, f: F, timestamp: Timestamp) -> Option<Vec<Effect<C>>>
    where
        F: FnOnce(&mut ActiveValidator<C>, &State<C>) -> Vec<Effect<C>>,
    {
        let effects = f(self.active_validator.as_mut()?, &self.state);
        Some(self.add_new_own_vertices(effects, timestamp))
    }
fn map_active_validator < F > ( & mut self , f : F , timestamp : Timestamp ) -> Option < Vec < Effect < C > > > where F : FnOnce ( & mut ActiveValidator < C > , & State < C > ) -> Vec < Effect < C > > , { let effects = f ( self . active_validator . as_mut ( ) ? , & self . state ) ; Some ( self . add_new_own_vertices ( effects , timestamp ) ) }
Applies `f` if this is an active validator, otherwise returns `None`.
Applies ` f ` if this is an active validator otherwise returns ` None ` .
&mut self
f
F
timestamp
Timestamp
&mut self
f
F
timestamp
Timestamp