Registry / utility / arrayvec

arrayvec

JSON →
library0.7.6rscratesunverified

A vector with fixed capacity, backed by an array (it can be stored on the stack too). Implements fixed capacity ArrayVec and ArrayString.

# Cargo.toml [dependencies] arrayvec = "0.7.6"
INSTALL
IMPORT
SIG · ARRAYVEC
A
arrayvec
utilityrustv0.7.6
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.

ArrayVec
use arrayvec::ArrayVec;

Creates a fixed-capacity vector on the stack.

use arrayvec::ArrayVec; fn main() { let mut vec: ArrayVec<[i32; 4]> = ArrayVec::new(); vec.push(1); vec.push(2); assert_eq!(vec.len(), 2); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.7.6latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
18 hits · last 30 days
node
16
OpenAI (training)
2
Resources
arrayvec — cargo add arrayvec · libregistry