Skip to main content

Module sparse_index

Module sparse_index 

Source
Expand description

Index conversion traits for sparse containers.

Defines TrySparseIndex for types that map to usize indices with validation, enabling enum keys, bounded integers, and other constrained index types.

Enums§

NumericIndexError
Error type for numeric index conversions that are out of bounds.

Traits§

SparseIndex
A trait for types that can be infallibly converted to and from indices.
TrySparseIndex
A trait for types that can be safely converted to and from indices.