Macro indexical::define_index_type
source · macro_rules! define_index_type { ( $(#[$attrs:meta])* $v:vis struct $type:ident for $target:ty = $raw:ident; $($CONFIG_NAME:ident = $value:expr;)* $(;)? ) => { ... }; }
Expand description
Creates a new index type and associates it with an object type.
This is a thin wrapper around index_vec::define_index_type
. The only
modification is the for $TYPE
syntax that generates the IndexedValue
implementation.