Registry / utility / bounded-vec

bounded-vec

JSON →
library0.9.0rscratesunverified

Non-empty Rust Vec wrapper with type guarantees on lower and upper bounds for items quantity.

# Cargo.toml [dependencies] bounded-vec = "0.9.0"
INSTALL
IMPORT
SIG · BOUNDED-VEC
B
bounded-vec
utilityrustv0.9.0
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.

BoundedVec
use bounded_vec::BoundedVec;

Create a BoundedVec with lower bound 1 and upper bound 5.

use bounded_vec::BoundedVec; fn main() { let vec: BoundedVec<i32, 1, 5> = BoundedVec::from_vec(vec![1, 2, 3]).unwrap(); println!("BoundedVec: {:?}", vec); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.9.0latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Meta
1
Resources
bounded-vec — cargo add bounded-vec · libregistry