pub enum Target {
Any(Option<TrickCount>),
All(Option<TrickCount>),
Legal,
}Expand description
Target tricks and number of solutions to find
Corresponds to the target and solutions arguments of
sys::SolveBoard. The associated Option<TrickCount> selects between a
minimum target (Some) and “find the most tricks” (None); the FFI -1
sentinel is produced by Target::target and is not part of the public
payload.
Variants§
Any(Option<TrickCount>)
Find any card that fulfills the target
Some(tc): any card scoring at leasttctricksNone: any card scoring the most tricks
All(Option<TrickCount>)
Find all cards that fulfill the target
Some(tc): all cards scoring at leasttctricksNone: 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 UnsafeUnpin 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