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