Registry / utility / staticvec

staticvec

JSON →
library0.11.9rscratesunverified

Implements a fixed-capacity stack-allocated Vec alternative backed by an array, using const generics.

# Cargo.toml [dependencies] staticvec = "0.11.9"
INSTALL
IMPORT
SIG · STATICVEC
S
staticvec
utilityrustv0.11.9
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.

StaticVec
use staticvec::StaticVec;

Creates a fixed-capacity stack-allocated vector and pushes elements.

use staticvec::StaticVec; fn main() { let mut vec = StaticVec::<i32, 3>::new(); vec.push(1); vec.push(2); vec.push(3); println!("{:?}", vec); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.11.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
4
Amazon
1
Resources
staticvec — cargo add staticvec · libregistry