1 2 3 4 5 6 7 8 9 10 11
use crate::core::{Ballot, Tactic}; /// The identity tactic does nothing and returns the honest ballot. #[derive(Debug)] pub struct Identity; impl<B: Ballot> Tactic<B> for Identity { fn apply(&self, ballot: B) -> B { ballot } }