kingmaker 0.1.0

A modular, performant, social choice framework for the simulation, computation, and analysis of strategic voting.
Documentation
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
    }
}