pub enum VotingErrors {
EmptyElection,
NoConvergence,
NoCandidateToEliminate,
}Expand description
Errors that prevent the algorithm from completing successfully.
Variants§
EmptyElection
There is no vote to process.
NoConvergence
The algorithm failed to determine one or more winners.
NoCandidateToEliminate
Trait Implementations§
Source§impl Clone for VotingErrors
impl Clone for VotingErrors
Source§fn clone(&self) -> VotingErrors
fn clone(&self) -> VotingErrors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VotingErrors
impl Debug for VotingErrors
Source§impl Display for VotingErrors
impl Display for VotingErrors
Source§impl Error for VotingErrors
impl Error for VotingErrors
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl PartialEq for VotingErrors
impl PartialEq for VotingErrors
impl Eq for VotingErrors
impl StructuralPartialEq for VotingErrors
Auto Trait Implementations§
impl Freeze for VotingErrors
impl RefUnwindSafe for VotingErrors
impl Send for VotingErrors
impl Sync for VotingErrors
impl Unpin for VotingErrors
impl UnwindSafe for VotingErrors
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more