t

Macro t 

Source
macro_rules! t {
    ($s:expr) => { ... };
}
Expand description

Shortcut for creating a tile literal through its string shorthand.

Example:

use riichi_elements::tile::*;
assert_eq!(t!("5p"), Tile::from_encoding(1 * 9 + (5 - 1)).unwrap());