pub enum Target {
Any(i8),
All(i8),
Legal,
}Expand description
Target tricks and number of solutions to find
This enum corresponds to a tuple of target and solutions in
sys::SolveBoard. The target tricks given as an associated value must
be in the range of -1..=13, where -1 instructs the solver to find cards
that give the most tricks.
Variants§
Any(i8)
Find any card that fulfills the target
0..=13: Find any card scoring at leasttargettricks-1: Find any card scoring the most tricks
All(i8)
Find all cards that fulfill the target
0..=13: Find all cards scoring at leasttargettricks-1: Find all cards scoring the most tricks
Legal
Solve for all legal plays
Cards are sorted with their scores in descending order.
Implementations§
Trait Implementations§
impl Copy for Target
impl Eq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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