fn can_vote(&self, state: &State<C>) -> bool {
        self.own_last_unit
            .as_ref()
            .map_or(true, |swunit| state.has_unit(&swunit.hash()))
    }
/// Returns whether validator's protocol state is fully synchronized and it's safe to start
/// creating units.
///
/// If validator restarted within an era, it most likely had created units before that event. It
/// cannot start creating new units until its state is fully synchronized, otherwise it will
/// most likely equivocate.
Returns whether validator's protocol state is fully synchronized and it's safe to start
creating units.

If validator restarted within an era, it most likely had created units before that event. It
cannot start creating new units until its state is fully synchronized, otherwise it will
most likely equivocate.
Returns whether validator ' s protocol state is fully synchronized and it ' s safe to start creating units . If validator restarted within an era it most likely had created units before that event . It cannot start creating new units until its state is fully synchronized otherwise it will most likely equivocate .
fn can_vote(&self, state: &State<C>) -> bool {
        self.own_last_unit
            .as_ref()
            .map_or(true, |swunit| state.has_unit(&swunit.hash()))
    }
fn can_vote ( & self , state : & State < C > ) -> bool { self . own_last_unit . as_ref ( ) . map_or ( true , | swunit | state . has_unit ( & swunit . hash ( ) ) ) }
Returns whether validator's protocol state is fully synchronized and it's safe to start
creating units.
Returns whether validator ' s protocol state is fully synchronized and it ' s safe to start creating units .
&self
state
&State<C>
&self
state
&State<C>