Registry / utility / index-vec

index-vec

JSON →
library0.1.4rscratesunverified

Newtype-style helpers for `Vec` and `usize` to create type-safe indexed collections.

# Cargo.toml [dependencies] index_vec = "0.1.4"
INSTALL
IMPORT
SIG · INDEX-VEC
I
index-vec
utilityrustv0.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

IndexVec
use index_vec::IndexVec;

Create a type-safe indexed vector.

use index_vec::IndexVec; fn main() { let mut vec: IndexVec<usize, String> = IndexVec::new(); vec.push("hello".to_string()); println!("{}", vec[0]); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.1.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Amazon
1
Resources
index-vec — cargo add index-vec · libregistry