use std::{error::Error, collections::HashMap, cmp::Ordering}; #[derive(PartialEq, Eq, PartialOrd, Ord, Debug, Clone, Copy, Hash)] enum Label { J, Two, Three, Four, Five, Six, Seven, Eight, Nine, T, Q, K, A } #[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd)] struct Hand { cards: [Label; 5] } struct WrongCardCount; impl TryFrom> for Hand { type Error = WrongCardCount; fn try_from(value: Vec