• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..--

benches/25-Apr-2025-554491

src/25-Apr-2025-14,58812,625

src-backup/25-Apr-2025-304224

tests/25-Apr-2025-947756

.cargo-checksum.jsonD25-Apr-20251.9 KiB11

Android.bpD25-Apr-20252.9 KiB132124

CHANGELOG.mdD25-Apr-20252.9 KiB7449

Cargo.tomlD25-Apr-20252.1 KiB11498

LICENSED25-Apr-202511.3 KiB203169

LICENSE-APACHE.mdD25-Apr-202511.3 KiB203169

LICENSE-MIT.mdD25-Apr-20251 KiB63

LICENSE-ZLIB.mdD25-Apr-2025862 126

METADATAD25-Apr-2025211 1211

MODULE_LICENSE_APACHE2D25-Apr-20250

README.mdD25-Apr-20251.1 KiB2013

TEST_MAPPINGD25-Apr-2025556 3231

cargo_embargo.jsonD25-Apr-2025586 3433

compare_benchmarks.pyD25-Apr-2025948 3121

gen-array-impls.shD25-Apr-2025939 5441

rules.mkD25-Apr-2025568 1811

rustfmt.tomlD25-Apr-2025283 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