Skip to main content

parse_card

Function parse_card 

Source
pub fn parse_card(s: &str) -> Result<Card, Error>
Expand description

Parse a card from its 2-character wire form (e.g. "Ah"). Mirrors the Python and JavaScript helpers of the same name; equivalent to s.parse::<Card>().