[−][src]Struct wybr::outcome::GenericOutcome
Multi-winner election outcome
Methods
impl<'a> GenericOutcome<'a>
[src]
pub fn new<I, J>(
winners: I,
withdrawn: J,
candidates: u32,
sealed: bool,
meta: &'a Metadata
) -> GenericOutcome<'a> where
I: IntoIterator<Item = u32>,
J: IntoIterator<Item = u32>,
[src]
winners: I,
withdrawn: J,
candidates: u32,
sealed: bool,
meta: &'a Metadata
) -> GenericOutcome<'a> where
I: IntoIterator<Item = u32>,
J: IntoIterator<Item = u32>,
Trait Implementations
impl<'a> Outcome for GenericOutcome<'a>
[src]
fn meta(&self) -> &Metadata
[src]
fn deterministic(&self) -> bool
[src]
fn candidate_count(&self) -> usize
[src]
fn elected_count(&self) -> usize
[src]
ⓘImportant traits for CandidateIterator<'a>fn elected(&self) -> CandidateIterator
[src]
ⓘImportant traits for CandidateIterator<'a>
fn winner(&self) -> Option<u32>
[src]
fn withdrawn_count(&self) -> usize
[src]
ⓘImportant traits for CandidateIterator<'a>fn withdrawn(&self) -> CandidateIterator
[src]
ⓘImportant traits for CandidateIterator<'a>
ⓘImportant traits for NamesIterator<'a>fn elected_names(&self) -> NamesIterator
[src]
ⓘImportant traits for NamesIterator<'a>
Return iterator of elected candidate names Read more
fn winner_name(&self) -> Option<String>
[src]
ⓘImportant traits for NamesIterator<'a>fn withdrawn_names(&self) -> NamesIterator
[src]
ⓘImportant traits for NamesIterator<'a>
Return iterator of names of withdrawn candidates
impl<'a> Debug for GenericOutcome<'a>
[src]
impl<'a> Display for GenericOutcome<'a>
[src]
Auto Trait Implementations
impl<'a> Send for GenericOutcome<'a>
impl<'a> Sync for GenericOutcome<'a>
Blanket Implementations
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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> 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,