safe_index

Crates.iosafe_index
lib.rssafe_index
version0.10.0
sourcesrc
created_at2019-03-04 22:31:56.393081
updated_at2022-10-21 14:21:57.481158
descriptionType-safe indexes.
homepagehttps://github.com/AdrienChampion/safe_index
repositoryhttps://github.com/AdrienChampion/safe_index
max_upload_size
id118746
size47,859
Adrien Champion (AdrienChampion)

documentation

https://docs.rs/safe_index

README

crates.io Documentation CI

safe_index

Zero-cost-wraps usize-s to give them a specific type. The motivation is to have different kinds of indices that are incompatible at type-level, thus lowering the chance of mixing them up compared to using usize-s.

Index-type creation is done through a macro, so the type actually belong to the client crate. This lets users augment index-types with methods, trait implementations, etc.

See the documentation for details.

If you are experiencing problems upgrading from a version < 0.9.17, make sure you read the changelog.

Commit count: 41

cargo fmt