tag | 3e42db5d704de7371505965c2dacc7e38616efd4 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Mar 17 13:23:16 2022 -0700 |
object | 3a423cbd39df8d0e08dad837f1ee3b5964066033 |
Android T Preview 2 (TPP2.220218.010)
commit | 3a423cbd39df8d0e08dad837f1ee3b5964066033 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 15:28:00 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Wed Dec 15 15:28:00 2021 +0000 |
tree | 56a6967701ac6101a0d79dd61724d3a4587ceb7a | |
parent | 24c95aca462699305dbea62444d4420454408d40 [diff] | |
parent | 930746e7fe4cc8bfb772d2d90c7c3a9442febad7 [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING."
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