Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/workflows/ | 23-Nov-2023 | - | 40 | 37 | ||
benches/ | 23-Nov-2023 | - | 53 | 44 | ||
patches/ | 23-Nov-2023 | - | 15 | 13 | ||
src/ | 23-Nov-2023 | - | 14,064 | 12,259 | ||
src-backup/ | 23-Nov-2023 | - | 304 | 224 | ||
tests/ | 23-Nov-2023 | - | 836 | 664 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.gitignore | D | 23-Nov-2023 | 19 | 3 | 2 | |
Android.bp | D | 23-Nov-2023 | 2 KiB | 65 | 60 | |
CHANGELOG.md | D | 23-Nov-2023 | 1.2 KiB | 35 | 24 | |
Cargo.toml | D | 23-Nov-2023 | 1.6 KiB | 62 | 54 | |
Cargo.toml.orig | D | 23-Nov-2023 | 2 KiB | 71 | 55 | |
LICENSE | D | 23-Nov-2023 | 9 KiB | 68 | 37 | |
LICENSE-APACHE.md | D | 23-Nov-2023 | 9 KiB | 68 | 37 | |
LICENSE-MIT.md | D | 23-Nov-2023 | 1 KiB | 6 | 3 | |
LICENSE-ZLIB.md | D | 23-Nov-2023 | 862 | 12 | 6 | |
METADATA | D | 23-Nov-2023 | 389 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 23-Nov-2023 | 0 | |||
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 1.1 KiB | 20 | 13 | |
TEST_MAPPING | D | 23-Nov-2023 | 279 | 15 | 14 | |
cargo2android.json | D | 23-Nov-2023 | 217 | 11 | 11 | |
gen-array-impls.sh | D | 23-Nov-2023 | 939 | 54 | 41 | |
rustfmt.toml | D | 23-Nov-2023 | 366 | 17 | 14 |
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