• Home
Name Date Size #Lines LOC

..--

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

benches/03-May-2024-5344

patches/03-May-2024-1513

src/03-May-2024-14,06412,259

src-backup/03-May-2024-304224

tests/03-May-2024-836664

.cargo_vcs_info.jsonD03-May-202474 65

.gitignoreD03-May-202419 32

Android.bpD03-May-20242 KiB6560

CHANGELOG.mdD03-May-20241.2 KiB3524

Cargo.tomlD03-May-20241.6 KiB6254

Cargo.toml.origD03-May-20242 KiB7155

LICENSED03-May-20249 KiB6837

LICENSE-APACHE.mdD03-May-20249 KiB6837

LICENSE-MIT.mdD03-May-20241 KiB63

LICENSE-ZLIB.mdD03-May-2024862 126

METADATAD03-May-2024389 2019

MODULE_LICENSE_APACHE2D03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-20241.1 KiB2013

TEST_MAPPINGD03-May-2024279 1514

cargo2android.jsonD03-May-2024217 1111

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

rustfmt.tomlD03-May-2024366 1714

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