commit | cf57fca32c440d8ef0c97fb7cd1607909dde401d | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue May 31 15:54:39 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue May 31 15:54:39 2022 +0000 |
tree | f9ecff9ff1bf403978b80e122b9fac0d2d2a3369 | |
parent | 056797c370adea5ce41eee207baca8b3860b22b4 [diff] | |
parent | 3f37e30c46575d2464e625dbfc1c725a5fb5f19b [diff] |
Update TEST_MAPPING am: 3f37e30c46 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/tinyvec/+/2108612 Change-Id: I883a05fedc48f7de5f208eb87db852796cf4ad17 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