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

..03-May-2022-

.github/workflows/H03-May-2022-4845

benches/H03-May-2022-554491

src/H03-May-2022-14,40112,552

src-backup/H03-May-2022-304224

tests/H03-May-2022-890705

.cargo-checksum.jsonH A D03-May-202289 11

.cargo_vcs_info.jsonH A D01-Jan-197094 66

.gitignoreH A D29-Nov-197321 32

CHANGELOG.mdH A D29-Nov-19732.5 KiB6643

Cargo.tomlH A D01-Jan-19701.9 KiB7866

Cargo.toml.orig-cargoH A D29-Nov-19732.6 KiB9171

LICENSE-APACHE.mdH A D29-Nov-197311.3 KiB203169

LICENSE-MIT.mdH A D29-Nov-19731 KiB63

LICENSE-ZLIB.mdH A D29-Nov-1973862 126

README.mdH A D29-Nov-19731.1 KiB2013

compare_benchmarks.pyH A D29-Nov-1973948 3121

gen-array-impls.shH A D29-Nov-1973939 5441

rustfmt.tomlH A D29-Nov-1973283 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