pub struct Card(/* private fields */);Expand description
A playing card
Implementations§
Trait Implementations§
Source§impl SmallSet<Card> for Hand
impl SmallSet<Card> for Hand
Source§fn set(&mut self, card: Card, condition: bool)
fn set(&mut self, card: Card, condition: bool)
Conditionally insert/remove a value from the set
Source§fn intersection(self, rhs: Self) -> <Self as BitAnd>::Output
fn intersection(self, rhs: Self) -> <Self as BitAnd>::Output
Intersection of two sets
Source§fn difference(self, rhs: Self) -> <Self as Sub>::Output
fn difference(self, rhs: Self) -> <Self as Sub>::Output
Difference of two sets
Source§fn symmetric_difference(self, rhs: Self) -> <Self as BitXor>::Output
fn symmetric_difference(self, rhs: Self) -> <Self as BitXor>::Output
Symmetric difference of two sets
Source§fn complement(self) -> <Self as Not>::Output
fn complement(self) -> <Self as Not>::Output
Complement of the set
impl Copy for Card
impl Eq for Card
impl StructuralPartialEq for Card
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