commit | 907f295e8ecca9b20e3a0d66527ff6d4e029f328 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue May 31 17:24:03 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 31 17:24:03 2022 +0000 |
tree | f9ecff9ff1bf403978b80e122b9fac0d2d2a3369 | |
parent | c6cf201b6a75bbc6f0d33cfb27007753fd64817a [diff] | |
parent | cd4da3874809c5d822e079bbf19c1a8eea7fbb95 [diff] |
Update TEST_MAPPING am: 3f37e30c46 am: cf57fca32c am: cd4da38748 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/tinyvec/+/2108612 Change-Id: Ife673df13ca8442d1e56ce2e638e2228f6ff5e1e Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
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