fn missing_dep(&self, state: &State<C>, idx: ValidatorIndex) -> Option<Dependency<C>> {
        match self {
            Observation::Faulty if !state.is_faulty(idx) => Some(Dependency::Evidence(idx)),
            Observation::Correct(hash) if !state.has_unit(hash) => Some(Dependency::Unit(*hash)),
            _ => None,
        }
    }
/// Returns the missing dependency if `self` is referring to a vertex we don't know yet.
Returns the missing dependency if `self` is referring to a vertex we don't know yet.
Returns the missing dependency if ` self ` is referring to a vertex we don ' t know yet .
fn missing_dep(&self, state: &State<C>, idx: ValidatorIndex) -> Option<Dependency<C>> {
        match self {
            Observation::Faulty if !state.is_faulty(idx) => Some(Dependency::Evidence(idx)),
            Observation::Correct(hash) if !state.has_unit(hash) => Some(Dependency::Unit(*hash)),
            _ => None,
        }
    }
fn missing_dep ( & self , state : & State < C > , idx : ValidatorIndex ) -> Option < Dependency < C > > { match self { Observation :: Faulty if ! state . is_faulty ( idx ) => Some ( Dependency :: Evidence ( idx ) ) , Observation :: Correct ( hash ) if ! state . has_unit ( hash ) => Some ( Dependency :: Unit ( * hash ) ) , _ => None , } }
Returns the missing dependency if `self` is referring to a vertex we don't know yet.
Returns the missing dependency if ` self ` is referring to a vertex we don ' t know yet .
&self
state
&State<C>
idx
ValidatorIndex
&self
state
&State<C>
idx
ValidatorIndex