pub enum RangeCard {
CC(RankConst, SuitConst),
CV(RankConst, SuitVar),
CA(RankConst),
VC(RankVar, SuitConst),
VV(RankVar, SuitVar),
VA(RankVar),
AC(SuitConst),
AV(SuitVar),
AA,
}Expand description
Card pattern within a range, combining rank and suit as concrete, variable, or any.
Variants§
CC(RankConst, SuitConst)
Concrete rank and concrete suit.
CV(RankConst, SuitVar)
Concrete rank and suit variable.
CA(RankConst)
Concrete rank with any suit.
VC(RankVar, SuitConst)
Rank variable and concrete suit.
VV(RankVar, SuitVar)
Rank variable and suit variable.
VA(RankVar)
Rank variable with any suit.
AC(SuitConst)
Any rank with concrete suit.
AV(SuitVar)
Any rank with suit variable.
AA
Any card.
Trait Implementations§
impl Copy for RangeCard
impl Eq for RangeCard
impl StructuralPartialEq for RangeCard
Auto Trait Implementations§
impl Freeze for RangeCard
impl RefUnwindSafe for RangeCard
impl Send for RangeCard
impl Sync for RangeCard
impl Unpin for RangeCard
impl UnsafeUnpin for RangeCard
impl UnwindSafe for RangeCard
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