/
View dependency graph
Depends on
- dh-cargo (dh-sequence-cargo)
- rust-arbitrary (librust-arbitrary-1+default-dev)
- rust-malloc-size-of (librust-malloc-size-of-0.1-dev)
- cargo, debhelper-compat, librust-serde-1-dev, libstd-rust-dev, rustc
Used by
- rust-spdx 0.13.4+dfsg-2
- rust-sqlx-core 0.8.3-3
- rust-sqlx-mysql 0.8.3-1
- rust-sqlx-postgres 0.8.3-5
- rust-tinyvec 1.12.0-1
- rust-toml-span 0.7.1-1
- rust-tracing-subscriber 0.3.23-1
- rust-unicode-bidi 0.3.18-1
- rust-unicode-normalization-alignments 0.1.12-1
- rust-version-ranges 0.1.3-1
- rust-write16 1.0.0-1
- hx 25.07.1+20260723+ds+~0.3.3+ds+~0.4.0+20260627+ds-2
- jujutsu 0.44.0-8
README (full)
rust-smallvec
"Small vector" optimization for Rust: store up to a small number of items on the stack
Example
use smallvec::{SmallVec, smallvec};
// This SmallVec can hold up to 4 items on the stack:
let mut v: SmallVec<[i32; 4]> = smallvec![1, 2, 3, 4];
// It will automatically move its contents to the heap if
// contains more than four items:
v.push(5);
// SmallVec points to a slice, so you can use normal slice
// indexing and other methods to access its contents:
v[0] = v[1] + v[2];
v.sort();
| dir | debian/ |
| dir | debug_metadata/ |
| dir | src/ |
| file | .cargo_vcs_info.json |
| file | Cargo.lock |
| file | Cargo.toml |
| file | Cargo.toml.orig |
| file | LICENSE-APACHE |
| file | LICENSE-MIT |
| file | README.md |