#[non_exhaustive]pub enum QualityError {
InvalidBoard(String),
InvalidRange {
player: usize,
reason: String,
},
NoCompatibleDeals,
InvalidTree(String),
UnsupportedChanceReduction,
InvalidStrategy {
node_id: usize,
reason: String,
},
NonFiniteResult,
}Expand description
Invalid or unsupported reference-evaluation 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.
InvalidBoard(String)
The initial board has duplicate or out-of-range cards, or an unsupported length.
InvalidRange
A combo has invalid or repeated cards, or a weight is negative or not finite.
Fields
NoCompatibleDeals
No legal pair of private hands has positive finite joint weight.
InvalidTree(String)
The tree is malformed for the given board.
UnsupportedChanceReduction
A chance node groups several cards under one representative; expand suit-isomorphism reduction first.
InvalidStrategy
The supplied policy has the wrong shape or is not a distribution.
NonFiniteResult
Evaluation produced a NaN or infinite value.
Trait Implementations§
Source§impl Clone for QualityError
impl Clone for QualityError
Source§impl Debug for QualityError
impl Debug for QualityError
Source§impl Display for QualityError
impl Display for QualityError
impl Eq for QualityError
Source§impl Error for QualityError
impl Error for QualityError
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 QualityError
impl PartialEq for QualityError
impl StructuralPartialEq for QualityError
Auto Trait Implementations§
impl Freeze for QualityError
impl RefUnwindSafe for QualityError
impl Send for QualityError
impl Sync for QualityError
impl Unpin for QualityError
impl UnsafeUnpin for QualityError
impl UnwindSafe for QualityError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more