[−][src]Struct sp_phragmen::PhragmenResult
Final result of the phragmen election.
Fields
winners: Vec<WithApprovalOf<AccountId>>
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<Assignment<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
Auto Trait Implementations
impl<AccountId, T> RefUnwindSafe for PhragmenResult<AccountId, T> where
AccountId: RefUnwindSafe,
T: RefUnwindSafe,
AccountId: RefUnwindSafe,
T: RefUnwindSafe,
impl<AccountId, T> Send for PhragmenResult<AccountId, T> where
AccountId: Send,
T: Send,
AccountId: Send,
T: Send,
impl<AccountId, T> Sync for PhragmenResult<AccountId, T> where
AccountId: Sync,
T: Sync,
AccountId: Sync,
T: Sync,
impl<AccountId, T> Unpin for PhragmenResult<AccountId, T> where
AccountId: Unpin,
T: Unpin,
AccountId: Unpin,
T: Unpin,
impl<AccountId, T> UnwindSafe for PhragmenResult<AccountId, T> where
AccountId: UnwindSafe,
T: UnwindSafe,
AccountId: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SaturatedConversion for T
[src]
fn saturated_from<T>(t: T) -> Self where
Self: UniqueSaturatedFrom<T>,
[src]
Self: UniqueSaturatedFrom<T>,
fn saturated_into<T>(self) -> T where
Self: UniqueSaturatedInto<T>,
[src]
Self: UniqueSaturatedInto<T>,
impl<T, U> TryFrom<U> 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, U> TryInto<U> 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, S> UniqueSaturatedInto<T> for S where
S: TryInto<T>,
T: Bounded,
[src]
S: TryInto<T>,
T: Bounded,