Name |
Date |
Size |
#Lines |
LOC |
||
---|---|---|---|---|---|---|
.. | - | - | ||||
benches/ | 25-Apr-2025 | - | 554 | 491 | ||
src/ | 25-Apr-2025 | - | 14,588 | 12,625 | ||
src-backup/ | 25-Apr-2025 | - | 304 | 224 | ||
tests/ | 25-Apr-2025 | - | 947 | 756 | ||
.cargo-checksum.json | D | 25-Apr-2025 | 1.9 KiB | 1 | 1 | |
Android.bp | D | 25-Apr-2025 | 2.9 KiB | 132 | 124 | |
CHANGELOG.md | D | 25-Apr-2025 | 2.9 KiB | 74 | 49 | |
Cargo.toml | D | 25-Apr-2025 | 2.1 KiB | 114 | 98 | |
LICENSE | D | 25-Apr-2025 | 11.3 KiB | 203 | 169 | |
LICENSE-APACHE.md | D | 25-Apr-2025 | 11.3 KiB | 203 | 169 | |
LICENSE-MIT.md | D | 25-Apr-2025 | 1 KiB | 6 | 3 | |
LICENSE-ZLIB.md | D | 25-Apr-2025 | 862 | 12 | 6 | |
METADATA | D | 25-Apr-2025 | 211 | 12 | 11 | |
MODULE_LICENSE_APACHE2 | D | 25-Apr-2025 | 0 | |||
README.md | D | 25-Apr-2025 | 1.1 KiB | 20 | 13 | |
TEST_MAPPING | D | 25-Apr-2025 | 556 | 32 | 31 | |
cargo_embargo.json | D | 25-Apr-2025 | 586 | 34 | 33 | |
compare_benchmarks.py | D | 25-Apr-2025 | 948 | 31 | 21 | |
gen-array-impls.sh | D | 25-Apr-2025 | 939 | 54 | 41 | |
rules.mk | D | 25-Apr-2025 | 568 | 18 | 11 | |
rustfmt.toml | D | 25-Apr-2025 | 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 10 A 100% safe crate of vec-like types. `#![forbid(unsafe_code)]` 11 12 Main 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 17 To attain this "100% safe code" status there is one compromise: the element type of the vecs must implement `Default`. 18 19 For more details, please see [the docs.rs documentation](https://docs.rs/tinyvec/) 20