pub struct RunoffRound<O> {
pub round: u32,
pub counts: Vec<OptionCount<O>>,
pub continuing_ballots: u64,
pub exhausted_ballots: u64,
pub eliminated: Vec<O>,
pub transfers: Vec<OptionCount<O>>,
pub transferred_to_exhausted: u64,
pub tie_broken_by_seed: bool,
}Expand description
One round of an instant-runoff count
Fields§
§round: u321 for the first round
counts: Vec<OptionCount<O>>Votes for every option still in the count
continuing_ballots: u64Ballots counting for an option this round
exhausted_ballots: u64Ballots exhausted so far: every option they rank is out
eliminated: Vec<O>The options eliminated at the end of this round; empty in the last
transfers: Vec<OptionCount<O>>Where the eliminated options’ ballots went in the next round
transferred_to_exhausted: u64Of those ballots, how many were exhausted instead
tie_broken_by_seed: booltrue when a tie for fewest votes was settled by the seed
Trait Implementations§
Source§impl<O: Clone> Clone for RunoffRound<O>
impl<O: Clone> Clone for RunoffRound<O>
Source§impl<O: Debug> Debug for RunoffRound<O>
impl<O: Debug> Debug for RunoffRound<O>
Source§impl<'de, O> Deserialize<'de> for RunoffRound<O>where
O: Deserialize<'de>,
impl<'de, O> Deserialize<'de> for RunoffRound<O>where
O: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<O: Eq> Eq for RunoffRound<O>
Source§impl<O: PartialEq> PartialEq for RunoffRound<O>
impl<O: PartialEq> PartialEq for RunoffRound<O>
Source§impl<O> Serialize for RunoffRound<O>where
O: Serialize,
impl<O> Serialize for RunoffRound<O>where
O: Serialize,
impl<O: PartialEq> StructuralPartialEq for RunoffRound<O>
Auto Trait Implementations§
impl<O> Freeze for RunoffRound<O>
impl<O> RefUnwindSafe for RunoffRound<O>
impl<O> Send for RunoffRound<O>
impl<O> Sync for RunoffRound<O>
impl<O> Unpin for RunoffRound<O>
impl<O> UnsafeUnpin for RunoffRound<O>
impl<O> UnwindSafe for RunoffRound<O>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.