pub fn add(&mut self, vote: Vote<Balance>) -> Option<()> {
		match vote.aye {
			true => self.ayes = self.ayes.checked_add(&vote.conviction.votes(vote.balance).votes)?,
			false => self.nays = self.nays.checked_add(&vote.conviction.votes(vote.balance).votes)?,
		}
		self.turnout = self.turnout.checked_add(&vote.conviction.votes(vote.balance).votes)?;
		Some(())
	}
/// Add an account's vote into the tally.
Add an account's vote into the tally.
Add an account ' s vote into the tally .
pub fn add(&mut self, vote: Vote<Balance>) -> Option<()> {
		match vote.aye {
			true => self.ayes = self.ayes.checked_add(&vote.conviction.votes(vote.balance).votes)?,
			false => self.nays = self.nays.checked_add(&vote.conviction.votes(vote.balance).votes)?,
		}
		self.turnout = self.turnout.checked_add(&vote.conviction.votes(vote.balance).votes)?;
		Some(())
	}
pub fn add ( & mut self , vote : Vote < Balance > ) -> Option < ( ) > { match vote . aye { true => self . ayes = self . ayes . checked_add ( & vote . conviction . votes ( vote . balance ) . votes ) ? , false => self . nays = self . nays . checked_add ( & vote . conviction . votes ( vote . balance ) . votes ) ? , } self . turnout = self . turnout . checked_add ( & vote . conviction . votes ( vote . balance ) . votes ) ? ; Some ( ( ) ) }
Add an account's vote into the tally.
Add an account ' s vote into the tally .
&mut self
vote
Vote<Balance>