#[non_exhaustive]pub enum CompetitiveSelectionError {
NoCandidates,
CandidateOutOfRange,
SeatOutOfRange,
SeatAlreadyAllocated,
NoCandidateAvailable,
ScoreOutOfRange,
ScoreCountMismatch,
WeightTotalBelowReservedFloor,
WeightTotalOutOfRange,
MaxScoreOutOfRange,
AllocationComplete,
}Expand description
Invalid competitive-selection configuration or input.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoCandidates
At least one candidate is required by this selection mode.
CandidateOutOfRange
A candidate index is outside the admitted candidate set.
SeatOutOfRange
A seat index is outside the admitted seat set.
SeatAlreadyAllocated
The selected seat already holds an allocation.
NoCandidateAvailable
Every candidate is currently allocated to another seat.
ScoreOutOfRange
A score is outside the admitted score domain.
ScoreCountMismatch
A score replacement has a different candidate count.
WeightTotalBelowReservedFloor
The weight total is smaller than the reserved unit per candidate.
WeightTotalOutOfRange
The weight total exceeds the verified arithmetic ceiling.
MaxScoreOutOfRange
The declared maximum score exceeds the verified arithmetic ceiling.
AllocationComplete
Every available soft-selection unit has already been assigned.
Trait Implementations§
Source§impl Clone for CompetitiveSelectionError
impl Clone for CompetitiveSelectionError
Source§fn clone(&self) -> CompetitiveSelectionError
fn clone(&self) -> CompetitiveSelectionError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CompetitiveSelectionError
Source§impl Debug for CompetitiveSelectionError
impl Debug for CompetitiveSelectionError
Source§impl Display for CompetitiveSelectionError
impl Display for CompetitiveSelectionError
impl Eq for CompetitiveSelectionError
Source§impl Error for CompetitiveSelectionError
impl Error for CompetitiveSelectionError
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()
impl StructuralPartialEq for CompetitiveSelectionError
Auto Trait Implementations§
impl Freeze for CompetitiveSelectionError
impl RefUnwindSafe for CompetitiveSelectionError
impl Send for CompetitiveSelectionError
impl Sync for CompetitiveSelectionError
impl Unpin for CompetitiveSelectionError
impl UnsafeUnpin for CompetitiveSelectionError
impl UnwindSafe for CompetitiveSelectionError
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