| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| .github/workflows/ | 03-May-2024 | - | 48 | 44 | ||
| benches/ | 03-May-2024 | - | 554 | 491 | ||
| src/ | 03-May-2024 | - | 14,588 | 12,625 | ||
| src-backup/ | 03-May-2024 | - | 304 | 224 | ||
| tests/ | 03-May-2024 | - | 947 | 756 | ||
| .cargo_vcs_info.json | D | 03-May-2024 | 94 | 6 | 6 | |
| .gitignore | D | 03-May-2024 | 21 | 3 | 2 | |
| Android.bp | D | 03-May-2024 | 3.3 KiB | 128 | 119 | |
| CHANGELOG.md | D | 03-May-2024 | 2.9 KiB | 74 | 49 | |
| Cargo.toml | D | 03-May-2024 | 2.1 KiB | 114 | 98 | |
| Cargo.toml.orig | D | 03-May-2024 | 2.7 KiB | 95 | 74 | |
| LICENSE | D | 03-May-2024 | 11.3 KiB | 203 | 169 | |
| LICENSE-APACHE.md | D | 03-May-2024 | 11.3 KiB | 203 | 169 | |
| LICENSE-MIT.md | D | 03-May-2024 | 1 KiB | 6 | 3 | |
| LICENSE-ZLIB.md | D | 03-May-2024 | 862 | 12 | 6 | |
| METADATA | D | 03-May-2024 | 631 | 24 | 22 | |
| MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | |||
| OWNERS | D | 03-May-2024 | 40 | 2 | 1 | |
| README.md | D | 03-May-2024 | 1.1 KiB | 20 | 13 | |
| TEST_MAPPING | D | 03-May-2024 | 499 | 28 | 27 | |
| cargo2android.json | D | 03-May-2024 | 288 | 13 | 13 | |
| cargo2android_nostd.bp | D | 03-May-2024 | 385 | 17 | 16 | |
| compare_benchmarks.py | D | 03-May-2024 | 948 | 31 | 21 | |
| gen-array-impls.sh | D | 03-May-2024 | 939 | 54 | 41 | |
| rustfmt.toml | D | 03-May-2024 | 283 | 15 | 12 |
README.md
1[](https://opensource.org/licenses/Zlib) 2 3[](https://crates.io/crates/tinyvec) 4[](https://docs.rs/tinyvec/) 5 6 7 8# tinyvec 9 10A 100% safe crate of vec-like types. `#![forbid(unsafe_code)]` 11 12Main types are as follows: 13* `ArrayVec` is an array-backed vec-like data structure. It panics on overflow. 14* `SliceVec` is the same deal, but using a `&mut [T]`. 15* `TinyVec` (`alloc` feature) is an enum that's either an `Inline(ArrayVec)` or a `Heap(Vec)`. If a `TinyVec` is `Inline` and would overflow it automatically transitions to `Heap` and continues whatever it was doing. 16 17To attain this "100% safe code" status there is one compromise: the element type of the vecs must implement `Default`. 18 19For more details, please see [the docs.rs documentation](https://docs.rs/tinyvec/) 20