fn ensureIndexer(comptime T: type) void

Verifies that a type is a valid Indexer, providing a helpful compile error if not. An Indexer maps a comptime-known set of keys to a dense set of zero-based indices. The indexer interface must look like this:

struct {
    /// The key type which this indexer converts to indices
    pub const Key: type,
    /// The number of indexes in the dense mapping
    pub const count: usize,
    /// Converts from a key to an index
    pub fn indexOf(Key) usize;
    /// Converts from an index to a key
    pub fn keyForIndex(usize) Key;
}

Parameters

T: type,