[][src]Struct wybr::tally::vote_matrix::VoteMatrix

pub struct VoteMatrix { /* fields omitted */ }

Methods

impl VoteMatrix[src]

pub fn with_vector_bycol(x: &[u64]) -> Result<VoteMatrix, ()>[src]

Important traits for VoteMatrixPairIterator<'a>
pub fn pairs(&self) -> VoteMatrixPairIterator[src]

Trait Implementations

impl Tally for VoteMatrix[src]

fn get_seats(&self) -> u32[src]

Return a number of seats

fn name_candidate(&self, id: u32) -> Option<&String>[src]

Get the name of a candidate from metadata

fn map_withdrawn<F: FnMut(u32)>(&self, f: F)[src]

Map over IDs of withdrawn candidates

fn from_blt_file(name: &str) -> Result<Self, VoteReadError> where
    Result<Self, VoteReadError>: FromIterator<VoteToken>, 
[src]

impl Clone for VoteMatrix[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for VoteMatrix[src]

impl FromIterator<(u32, u32, u64)> for VoteMatrix[src]

impl Index<(u32, u32)> for VoteMatrix[src]

type Output = u64

The returned type after indexing.

Auto Trait Implementations

impl Send for VoteMatrix

impl Sync for VoteMatrix

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.