Trait noble_democracy::Approved[][src]

pub trait Approved<Balance> {
    fn approved(&self, tally: Tally<Balance>, electorate: Balance) -> bool;
}

Required methods

fn approved(&self, tally: Tally<Balance>, electorate: Balance) -> bool[src]

Given a tally of votes and a total size of electorate, this returns true if the overall outcome is in favor of approval according to self’s threshold method.

Loading content...

Implementors

impl<Balance: IntegerSquareRoot + Zero + Ord + Add<Balance, Output = Balance> + Mul<Balance, Output = Balance> + Div<Balance, Output = Balance> + Rem<Balance, Output = Balance> + Copy> Approved<Balance> for VoteThreshold[src]

Loading content...