#[non_exhaustive]pub enum BoardError {
WrongSize {
len: usize,
},
DuplicateCard {
card: Card,
},
}Expand description
Why a board was rejected.
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.
WrongSize
The board must have 3 (flop), 4 (turn), or 5 (river) cards.
DuplicateCard
The same card appears more than once.
Trait Implementations§
Source§impl Clone for BoardError
impl Clone for BoardError
Source§impl Debug for BoardError
impl Debug for BoardError
Source§impl Display for BoardError
impl Display for BoardError
impl Eq for BoardError
Source§impl Error for BoardError
impl Error for BoardError
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 From<BoardError> for TrainerError
impl From<BoardError> for TrainerError
Source§fn from(error: BoardError) -> Self
fn from(error: BoardError) -> Self
Converts to this type from the input type.
Source§impl From<BoardError> for TreeError
impl From<BoardError> for TreeError
Source§fn from(error: BoardError) -> Self
fn from(error: BoardError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BoardError
impl PartialEq for BoardError
impl StructuralPartialEq for BoardError
Auto Trait Implementations§
impl Forget for BoardError
impl Freeze for BoardError
impl Move for BoardError
impl RefUnwindSafe for BoardError
impl Send for BoardError
impl Sync for BoardError
impl Unpin for BoardError
impl UnsafeUnpin for BoardError
impl UnwindSafe for BoardError
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