pub struct Card(pub u32);Tuple Fields§
§0: u32Implementations§
Source§impl Card
impl Card
pub const INT_RANKS: [u32; 13]
pub const PRIMES: [u32; 13]
pub const CHAR_RANK_TO_INT_RANK: [(char, u32); 13]
pub const CHAR_SUIT_TO_INT_SUIT: [(char, u32); 4]
pub fn new(string: &str) -> Self
pub fn prime_product_from_rankbits(rankbits: u32) -> u32
pub fn prime_product_from_hand(card_ints: &[u32]) -> u32
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Card
impl RefUnwindSafe for Card
impl Send for Card
impl Sync for Card
impl Unpin for Card
impl UnwindSafe for Card
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> 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