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

..--

.github/workflows/23-Nov-2023-4037

benches/23-Nov-2023-5344

patches/23-Nov-2023-1513

src/23-Nov-2023-14,06412,259

src-backup/23-Nov-2023-304224

tests/23-Nov-2023-836664

.cargo_vcs_info.jsonD23-Nov-202374 65

.gitignoreD23-Nov-202319 32

Android.bpD23-Nov-20232 KiB6560

CHANGELOG.mdD23-Nov-20231.2 KiB3524

Cargo.tomlD23-Nov-20231.6 KiB6254

Cargo.toml.origD23-Nov-20232 KiB7155

LICENSED23-Nov-20239 KiB6837

LICENSE-APACHE.mdD23-Nov-20239 KiB6837

LICENSE-MIT.mdD23-Nov-20231 KiB63

LICENSE-ZLIB.mdD23-Nov-2023862 126

METADATAD23-Nov-2023389 2019

MODULE_LICENSE_APACHE2D23-Nov-20230

OWNERSD23-Nov-202340 21

README.mdD23-Nov-20231.1 KiB2013

TEST_MAPPINGD23-Nov-2023279 1514

cargo2android.jsonD23-Nov-2023217 1111

gen-array-impls.shD23-Nov-2023939 5441

rustfmt.tomlD23-Nov-2023366 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