pub trait Shifty {
// Required method
fn shift_suit(&self) -> Self;
}Expand description
Trait that shifts the suit of a card to the next one down. Spades to hearts; hearts to diamonds, diamonds to clubs, and clubs back to spades.
This is used for analysis. Since no suit is better than another from an evaluation perspective, the odds calculated for cards of any suit should be the same if all the cards are shifted.
Required Methods§
fn shift_suit(&self) -> Self
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.