#[non_exhaustive]pub enum DoubleOption {
Any,
NineOrTen,
NineThrough11,
NineThrough15,
None,
}Expand description
Conditions under which doubling down is allowed.
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.
Any
Double down allowed on any hand.
NineOrTen
Double down allowed only on 9 or 10.
NineThrough11
Double down allowed only on 9 through 11.
NineThrough15
Double down allowed only on 9 through 15.
None
Double down not allowed.
Trait Implementations§
Source§impl Clone for DoubleOption
impl Clone for DoubleOption
Source§fn clone(&self) -> DoubleOption
fn clone(&self) -> DoubleOption
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DoubleOption
impl Debug for DoubleOption
Source§impl Default for DoubleOption
impl Default for DoubleOption
Source§fn default() -> DoubleOption
fn default() -> DoubleOption
Returns the “default value” for a type. Read more
Source§impl Hash for DoubleOption
impl Hash for DoubleOption
Source§impl PartialEq for DoubleOption
impl PartialEq for DoubleOption
impl Copy for DoubleOption
impl Eq for DoubleOption
impl StructuralPartialEq for DoubleOption
Auto Trait Implementations§
impl Freeze for DoubleOption
impl RefUnwindSafe for DoubleOption
impl Send for DoubleOption
impl Sync for DoubleOption
impl Unpin for DoubleOption
impl UnwindSafe for DoubleOption
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