trisquel-icecat/icecat/third_party/cbindgen/vendor/smallvec
2026-03-28 14:10:46 -06:00
..
.github/workflows icecat: add release icecat-140.9.0-1gnu1 for ecne 2026-03-28 14:10:46 -06:00
benches icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
debug_metadata icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
scripts icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
src icecat: add release icecat-140.6.0-1gnu1 for ecne 2026-01-17 19:26:27 -06:00
tests icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
.cargo-checksum.json icecat: add release icecat-140.9.0-1gnu1 for ecne 2026-03-28 14:10:46 -06:00
.cargo_vcs_info.json icecat: add release icecat-140.9.0-1gnu1 for ecne 2026-03-28 14:10:46 -06:00
Cargo.lock icecat: add release icecat-140.6.0-1gnu1 for ecne 2026-01-17 19:26:27 -06:00
Cargo.toml icecat: add release icecat-140.6.0-1gnu1 for ecne 2026-01-17 19:26:27 -06:00
LICENSE-APACHE icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
LICENSE-MIT icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00
README.md icecat: initial release for Trisquel 12.0, Ecne 2025-07-17 09:32:21 -06:00

rust-smallvec

Documentation

Release notes

"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();