[−][src]Struct wybr::tally::vote_matrix::VoteMatrix
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]
ⓘImportant traits for VoteMatrixPairIterator<'a>
Trait Implementations
impl Tally for VoteMatrix
[src]
fn get_meta(&self) -> &Metadata
[src]
fn get_candidates(&self) -> u32
[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]
Result<Self, VoteReadError>: FromIterator<VoteToken>,
impl Clone for VoteMatrix
[src]
fn clone(&self) -> 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]
Auto Trait Implementations
impl Send for VoteMatrix
impl Sync for VoteMatrix
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,