Enum soliterm_model::card::Suit
source · [−]#[repr(u8)]
pub enum Suit {
Spades,
Hearts,
Diamonds,
Clubs,
}
Variants
Spades
Hearts
Diamonds
Clubs
Implementations
Trait Implementations
sourceimpl Enum for Suit
impl Enum for Suit
sourcefn from_usize(value: usize) -> Self
fn from_usize(value: usize) -> Self
Takes an usize, and returns an element matching
into_usize
function.sourcefn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns an unique identifier for a value within range of
0..Array::LENGTH
.impl Copy for Suit
impl Eq for Suit
impl StructuralEq for Suit
impl StructuralPartialEq for Suit
Auto Trait Implementations
impl RefUnwindSafe for Suit
impl Send for Suit
impl Sync for Suit
impl Unpin for Suit
impl UnwindSafe for Suit
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more