Enum wybr::common::ElectionError
source · pub enum ElectionError {
ArithmeticOverflow,
FixedPointDigitsTooMany,
DegeneratedElectionGraph,
NotEnoughCandidates,
}
Expand description
Errors which may happen during the election
Variants§
ArithmeticOverflow
Scores got too large to fit in 64-bit integers
FixedPointDigitsTooMany
Too many digits requested for fixed-point operation to fit in 64-bit integers
DegeneratedElectionGraph
The election graph got degenerated and there is no single winner
NotEnoughCandidates
There is not enough candidates to fill all seats
Trait Implementations§
source§impl Debug for ElectionError
impl Debug for ElectionError
source§impl Display for ElectionError
impl Display for ElectionError
source§impl Error for ElectionError
impl Error for ElectionError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()