pub struct Two(/* private fields */);Implementations§
Source§impl Two
impl Two
pub const AA: [Two; 6]
pub const AK: [Two; 16]
pub const AKs: [Two; 4]
pub const AKo: [Two; 12]
pub const AQs: [Two; 4]
pub const AQo: [Two; 12]
pub fn new(first: CKCNumber, second: CKCNumber) -> Self
pub fn second(&self) -> CKCNumber
pub fn set_first(&mut self, card_number: CKCNumber)
pub fn set_second(&mut self, card_number: CKCNumber)
pub fn to_arr(&self) -> [CKCNumber; 2]
pub fn chen_formula(&self) -> i8
pub fn get_gap(&self) -> u8
pub fn high_card(&self) -> CKCNumber
pub fn is_connector(&self) -> bool
pub fn is_pocket_pair(&self) -> bool
pub fn is_suited(&self) -> bool
pub fn is_suited_connector(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Two
impl<'de> Deserialize<'de> for Two
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl HandValidator for Two
impl HandValidator for Two
fn are_unique(&self) -> bool
fn first(&self) -> CKCNumber
fn sort(&self) -> Self
fn sort_in_place(&mut self)
fn iter(&self) -> Iter<'_, CKCNumber>
fn contain_blank(&self) -> bool
Source§fn is_corrupt(&self) -> bool
fn is_corrupt(&self) -> bool
A corrupt hand is one where any of the values in the array doesn’t correspond to any
recognized
CardNumber or is blank.fn is_valid(&self) -> bool
Source§impl Ord for Two
impl Ord for Two
Source§impl PartialOrd for Two
impl PartialOrd for Two
impl Copy for Two
impl Eq for Two
impl StructuralPartialEq for Two
Auto Trait Implementations§
impl Freeze for Two
impl RefUnwindSafe for Two
impl Send for Two
impl Sync for Two
impl Unpin for Two
impl UnwindSafe for Two
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