| commit | 0f4ee301cee247d4033ab6056b8752d0ee71d654 | [log] [tgz] |
|---|---|---|
| author | Joel Galenson <jgalenson@google.com> | Wed May 19 17:27:31 2021 -0700 |
| committer | Joel Galenson <jgalenson@google.com> | Wed May 19 17:27:31 2021 -0700 |
| tree | 31e9c0110157611337ac93b3fd8f7106a2725f77 | |
| parent | c5df0d2700d63454a2e73d21775b68759bffa9cc [diff] |
Upgrade rust/crates/tinyvec to 1.2.0 Test: make Change-Id: Icb69d21bb8a873d0b5d5805b06c0836a4f70c178
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