pub fn is_highest_continuing_member_party_ticket(&self,candidate:CandidateIndex,metadata:&ElectionMetadata) -> bool {
        if let Some(party) = metadata.candidate(candidate).party {
            if !metadata.party(party).atl_allowed { return false; }
            for c in &metadata.party(party).candidates {
                if *c==candidate { return true }
                else if self.continuing.contains(c) { return false }
            }
            panic!("Candidate {} is not in their own party!",metadata.candidate(candidate).name);
        } else { false } // not in a party
    }
/// Return true if an ATL vote for the candidate's party (if any) would be sitting on the candidate.
Return true if an ATL vote for the candidate's party (if any) would be sitting on the candidate.
Return true if an ATL vote for the candidate ' s party ( if any ) would be sitting on the candidate .
pub fn is_highest_continuing_member_party_ticket(&self,candidate:CandidateIndex,metadata:&ElectionMetadata) -> bool {
        if let Some(party) = metadata.candidate(candidate).party {
            if !metadata.party(party).atl_allowed { return false; }
            for c in &metadata.party(party).candidates {
                if *c==candidate { return true }
                else if self.continuing.contains(c) { return false }
            }
            panic!("Candidate {} is not in their own party!",metadata.candidate(candidate).name);
        } else { false } // not in a party
    }
pub fn is_highest_continuing_member_party_ticket ( & self , candidate : CandidateIndex , metadata : & ElectionMetadata ) -> bool { if let Some ( party ) = metadata . candidate ( candidate ) . party { if ! metadata . party ( party ) . atl_allowed { return false ; } for c in & metadata . party ( party ) . candidates { if * c == candidate { return true } else if self . continuing . contains ( c ) { return false } } panic ! ( " " metadata candidate ( candidate ) name ) ; } else { false } // not in a party }
Return true if an ATL vote for the candidate's party (if any) would be sitting on the candidate.
Return true if an ATL vote for the candidate ' s party ( if any ) would be sitting on the candidate .
&self
candidate
CandidateIndex
metadata
&ElectionMetadata
&self
candidate
CandidateIndex
metadata
&ElectionMetadata