Function libxivdat::xiv_macro::icon::macro_icon_to_key_and_id[][src]

pub fn macro_icon_to_key_and_id(macro_icon: &MacroIcon) -> (&str, &str)
Expand description

Returns the key and id Section contents corresponding to a MacroIcon.

Examples

use libxivdat::xiv_macro::icon::{MacroIcon,macro_icon_to_key_and_id};

let (key_val, id_val) = macro_icon_to_key_and_id(&MacroIcon::ItemHammer);
assert_eq!(key_val, "014");
assert_eq!(id_val, "00005E9");