[][src]Enum wybr::common::BordaKind

pub enum BordaKind {
    Borda0,
    Borda1,
    Nauru,
}

Kind of a formula for scoring votes at different ranks

Variants

Borda0

max_rank for first, 0 for last (1 for first if max_rank is 0)

Borda1

max_rank+1 for first, 1 for last

Nauru

1 for first, 1/(max_rank+1) for last; in practice multiplied by lcm(1,2,..,max_rank+1) so that all scores are integers

Trait Implementations

impl Copy for BordaKind[src]

impl Clone for BordaKind[src]

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

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for BordaKind

impl Sync for BordaKind

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.