• Home
Name Date Size #Lines LOC

..--

.github/workflows/03-May-2024-4844

benches/03-May-2024-554491

src/03-May-2024-14,58812,625

src-backup/03-May-2024-304224

tests/03-May-2024-947756

.cargo_vcs_info.jsonD03-May-202494 66

.gitignoreD03-May-202421 32

Android.bpD03-May-20243.3 KiB128119

CHANGELOG.mdD03-May-20242.9 KiB7449

Cargo.tomlD03-May-20242.1 KiB11498

Cargo.toml.origD03-May-20242.7 KiB9574

LICENSED03-May-202411.3 KiB203169

LICENSE-APACHE.mdD03-May-202411.3 KiB203169

LICENSE-MIT.mdD03-May-20241 KiB63

LICENSE-ZLIB.mdD03-May-2024862 126

METADATAD03-May-2024631 2422

MODULE_LICENSE_APACHE2D03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-20241.1 KiB2013

TEST_MAPPINGD03-May-2024499 2827

cargo2android.jsonD03-May-2024288 1313

cargo2android_nostd.bpD03-May-2024385 1716

compare_benchmarks.pyD03-May-2024948 3121

gen-array-impls.shD03-May-2024939 5441

rustfmt.tomlD03-May-2024283 1512

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