Skip to main content

Module set

Module set 

Source

Structs§

Axis
A single contiguous integer axis of a dense index grid. Carried by Set (see Set::axes) so an crate::IndexedVar built over a range can store its scalars densely and map a key to a flat offset without hashing.
Set
A finite, ordered index set, parameterized by the type K its keys decode to.
SetIter

Enums§

IndexKey
A serializable index key from a Set.

Traits§

FromIndexKey
Typed projection of an IndexKey. Implementations panic when the key’s shape does not match the target type, the same contract as crate::indexed::IndexedVar indexing on a missing key.
KeyCat
Type-level concatenation of index key types, mirroring the runtime tuple flattening in Set::product. The arity ceiling is 4, matching the FromIndexKey/From<(...)> tuple implementations.
ScalarKey
Marker for non-tuple (“scalar”) index key types. Lets KeyCat distinguish the scalar base case from the tuple-extension cases without overlap.

Type Aliases§

IndexTuple
Heap-allocated tuple key payload. Immutable after construction.