[][src]Struct wybr::outcome::GenericOutcome

pub struct GenericOutcome<'a> { /* fields omitted */ }

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]

Trait Implementations

impl<'a> Outcome for GenericOutcome<'a>[src]

Important traits for NamesIterator<'a>
fn elected_names(&self) -> NamesIterator[src]

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]

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]

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> 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.

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