[][src]Macro mod_utilities::make_key_type

macro_rules! make_key_type {
    ($(#[$meta:meta])* $vis: vis struct $name: ident ; $($rest: tt)*) => { ... };
    () => { ... };
}

A wrapper macro to generate data and implementation for a unique Key type for use with SlotMaps

This allows type safety when using multiple SlotMaps, meaning a Key created for one SlotMap will not work for another, being rejected at compile time