Module onejoker::prelude

source ·
Expand description

wiki | Commonly used imports

This module re-exports all the functions, types, and macros that most users of the library will need.

Re-exports§

Macros§

  • Make const Card object from string. For example, card!("Ac") is equivalent to the constant ACE_OF_CLUBS.
  • Make const array of Card objects from string literals. For example, hand!("Ac", "2d", "3h") is equivalent to [ACE_OF_CLUBS, DEUCE_OF_DIAMONDS, TREY_OF_HEARTS].