[][src]Struct sp_phragmen::PhragmenResult

pub struct PhragmenResult<AccountId, T: PerThing> {
    pub winners: Vec<(AccountId, ExtendedBalance)>,
    pub assignments: Vec<(AccountId, Vec<PhragmenAssignment<AccountId, T>>)>,
}

Final result of the phragmen election.

Fields

winners: Vec<(AccountId, ExtendedBalance)>

Just winners zipped with their approval stake. Note that the approval stake is merely the sub of their received stake and could be used for very basic sorting and approval voting.

assignments: Vec<(AccountId, Vec<PhragmenAssignment<AccountId, T>>)>

Individual assignments. for each tuple, the first elements is a voter and the second is the list of candidates that it supports.

Trait Implementations

impl<AccountId, T: PerThing> Debug for PhragmenResult<AccountId, T> where
    AccountId: Debug,
    T: Debug
[src]

Auto Trait Implementations

impl<AccountId, T> RefUnwindSafe for PhragmenResult<AccountId, T> where
    AccountId: RefUnwindSafe,
    T: RefUnwindSafe

impl<AccountId, T> Send for PhragmenResult<AccountId, T> where
    AccountId: Send,
    T: Send

impl<AccountId, T> Sync for PhragmenResult<AccountId, T> where
    AccountId: Sync,
    T: Sync

impl<AccountId, T> Unpin for PhragmenResult<AccountId, T> where
    AccountId: Unpin,
    T: Unpin

impl<AccountId, T> UnwindSafe for PhragmenResult<AccountId, T> where
    AccountId: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

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

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

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

impl<T> CheckedConversion for T[src]

impl<T> From<T> for T[src]

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

impl<T, Outer> IsWrappedBy<Outer> for T where
    Outer: AsRef<T> + AsMut<T> + From<T>,
    T: From<Outer>, 

fn from_ref(outer: &Outer) -> &T

Get a reference to the inner from the outer.

fn from_mut(outer: &mut Outer) -> &mut T

Get a mutable reference to the inner from the outer.

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeDebug for T where
    T: Debug

impl<T> MaybeRefUnwindSafe for T where
    T: RefUnwindSafe

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatedConversion for T

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

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> 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<S, T> UncheckedInto<T> for S where
    T: UncheckedFrom<S>, 

impl<T, S> UniqueSaturatedInto<T> for S where
    S: TryInto<T>,
    T: Bounded

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,