Const Identify
Generates unique ids that can be used at compile time.
Also comes with array and slice types to manage collections of ids.
Usage
;
;
;
// create an ordered id array
// these are arrays of ids that are pre sorted
const ORDERED: = ordered_ids!;
// create a unique id array
// these are arrays of ids that are guarunteed to be unique
const UNIQUE: = match unique_ids!
// arrays may be compared at compile time using the provided methods
const COMPARE: Ordering = ORDERED.const_cmp_unique;
// arrays provide raw access to the underlying slices
const SORTED_SLICE: &'static = ORDERED.as_raw_slice;
// arrays may be converted to special slice types that carry the ordering/uniqueness guaruntee
const ORDERED_SLICE: = from_arr;
const UNIQUE_SLICE: = from_arr;