pub fn candidate_elem<T:Default+Clone>(vec : &mut Vec<T>, who:CandidateIndex) -> &mut T {
    if vec.len()<=who.0 {
        vec.resize(who.0+1,T::default())
    }
    &mut vec[who.0]
}
/// Given a vector, make sure the array is long enough to hold the person's entry, and return a mutable reference to it.
Given a vector, make sure the array is long enough to hold the person's entry, and return a mutable reference to it.
Given a vector make sure the array is long enough to hold the person ' s entry and return a mutable reference to it .
pub fn candidate_elem<T:Default+Clone>(vec : &mut Vec<T>, who:CandidateIndex) -> &mut T {
    if vec.len()<=who.0 {
        vec.resize(who.0+1,T::default())
    }
    &mut vec[who.0]
}
pub fn candidate_elem < T : Default + Clone > ( vec : & mut Vec < T > , who : CandidateIndex ) -> & mut T { if vec . len ( ) <= who . 0 { vec . resize ( who . 0 + 1 , T :: default ( ) ) } & mut vec [ who . 0 ] }
Given a vector, make sure the array is long enough to hold the person's entry, and return a mutable reference to it.
Given a vector make sure the array is long enough to hold the person ' s entry and return a mutable reference to it .
vec
&mut Vec<T>
who
CandidateIndex
vec
&mut Vec<T>
who
CandidateIndex