sparse_set 0.8.2

Implementation of the sparse set data structure
Documentation
1
2
3
4
5
6
7
8
//! Defines types and implementations for indexing the sparse set data structure.

/// A type with this trait indicates it can be used as an index into a `SparseSet`.
///
/// Two indices may the same index if they are unequal, but if equal they must return the same index.
pub trait SparseSetIndex: Copy + Into<usize> {}

impl SparseSetIndex for usize {}