[][src]Trait sunshine_util::traits::Apply

pub trait Apply<Vote>: Sized {
    fn apply(&self, vote: Vote) -> Self;
}

Defines how Votes are applied to the VoteState

Required methods

fn apply(&self, vote: Vote) -> Self

Loading content...

Implementors

impl<Hash: Clone, BlockNumber: Clone> Apply<PetitionView<Hash>> for PetitionState<Hash, BlockNumber>[src]

impl<Signal: Parameter + Copy + From<u32> + Default + Add<Output = Signal> + Sub<Output = Signal>, Hash: Clone, FineArithmetic: PerThing + Default, BlockNumber: Parameter + Copy + Default> Apply<YesNoVote<Signal, Hash>> for VoteState<Signal, FineArithmetic, BlockNumber>[src]

Loading content...