Function poke_a_mango::util::fruit_name [] [src]

pub fn fruit_name(fruit: &Option<usize>) -> &'static str

Get the fruit name from the format used in GameStatus::Playing::fruit.

Examples

assert_eq!(fruit_name(&None), "Mango");