Sha256: f2a59c75ef204e21173b2be150d183a946d0f10ad3a42d3e677d6f5507589aa4

Contents?: true

Size: 1.1 KB

Versions: 30

Compression:

Stored size: 1.1 KB

Contents

[![License:Zlib](https://img.shields.io/badge/License-Zlib-brightgreen.svg)](https://opensource.org/licenses/Zlib)
![Minimum Rust Version](https://img.shields.io/badge/Min%20Rust-1.34-green.svg)
[![crates.io](https://img.shields.io/crates/v/tinyvec.svg)](https://crates.io/crates/tinyvec)
[![docs.rs](https://docs.rs/tinyvec/badge.svg)](https://docs.rs/tinyvec/)

![Unsafe-Zero-Percent](https://img.shields.io/badge/Unsafety-0%25-brightgreen.svg)

# tinyvec

A 100% safe crate of vec-like types. `#![forbid(unsafe_code)]`

Main types are as follows:
* `ArrayVec` is an array-backed vec-like data structure. It panics on overflow.
* `SliceVec` is the same deal, but using a `&mut [T]`.
* `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.

To attain this "100% safe code" status there is one compromise: the element type of the vecs must implement `Default`.

For more details, please see [the docs.rs documentation](https://docs.rs/tinyvec/)

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
wasmtime-23.0.2 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-22.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-21.0.1 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-20.0.2 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-20.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-18.0.3 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-17.0.1 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-17.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-16.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-15.0.1 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-15.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-14.0.4 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-14.0.3 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-14.0.1 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-14.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-13.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-12.0.1 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-12.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-11.0.0 ./ext/cargo-vendor/tinyvec-1.6.0/README.md
wasmtime-10.0.1 ./ext/cargo-vendor/tinyvec-1.6.0/README.md