Skip to main content

ballots

Function ballots 

Source
pub fn ballots(layout: &Layout, id: &str) -> Result<Vec<Ballot>>
Expand description

The ballots cast on one issue, in the order the drawer holds them.

Exposed because a tally is not the only question worth asking of them: crate::consensus weighs the same ballots by who the group listens to.

ยงErrors

Returns an error if id is not in the corpus or the file cannot be read.