Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/workflows/ | H | 03-May-2022 | - | 48 | 45 | |
benches/ | H | 03-May-2022 | - | 554 | 491 | |
src/ | H | 03-May-2022 | - | 14,401 | 12,552 | |
src-backup/ | H | 03-May-2022 | - | 304 | 224 | |
tests/ | H | 03-May-2022 | - | 890 | 705 | |
.cargo-checksum.json | H A D | 03-May-2022 | 89 | 1 | 1 | |
.cargo_vcs_info.json | H A D | 01-Jan-1970 | 94 | 6 | 6 | |
.gitignore | H A D | 29-Nov-1973 | 21 | 3 | 2 | |
CHANGELOG.md | H A D | 29-Nov-1973 | 2.5 KiB | 66 | 43 | |
Cargo.toml | H A D | 01-Jan-1970 | 1.9 KiB | 78 | 66 | |
Cargo.toml.orig-cargo | H A D | 29-Nov-1973 | 2.6 KiB | 91 | 71 | |
LICENSE-APACHE.md | H A D | 29-Nov-1973 | 11.3 KiB | 203 | 169 | |
LICENSE-MIT.md | H A D | 29-Nov-1973 | 1 KiB | 6 | 3 | |
LICENSE-ZLIB.md | H A D | 29-Nov-1973 | 862 | 12 | 6 | |
README.md | H A D | 29-Nov-1973 | 1.1 KiB | 20 | 13 | |
compare_benchmarks.py | H A D | 29-Nov-1973 | 948 | 31 | 21 | |
gen-array-impls.sh | H A D | 29-Nov-1973 | 939 | 54 | 41 | |
rustfmt.toml | H A D | 29-Nov-1973 | 283 | 15 | 12 |
README.md
1[![License:Zlib](https://img.shields.io/badge/License-Zlib-brightgreen.svg)](https://opensource.org/licenses/Zlib) 2![Minimum Rust Version](https://img.shields.io/badge/Min%20Rust-1.34-green.svg) 3[![crates.io](https://img.shields.io/crates/v/tinyvec.svg)](https://crates.io/crates/tinyvec) 4[![docs.rs](https://docs.rs/tinyvec/badge.svg)](https://docs.rs/tinyvec/) 5 6![Unsafe-Zero-Percent](https://img.shields.io/badge/Unsafety-0%25-brightgreen.svg) 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