tag | 83f77e3f726b11047b9cce1478cb2ba07ccf845d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Apr 15 11:21:21 2024 -0700 |
object | aac8d54159812eddfaeab1c0ab23cd23cee9b06d |
Android 14.0.0 Release 32 (AP1A.240405.002.A2)
commit | aac8d54159812eddfaeab1c0ab23cd23cee9b06d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Nov 23 00:14:49 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Nov 23 00:14:49 2023 +0000 |
tree | 106e0ea99972697122caf4608d4d5c3b5b092a68 | |
parent | 74666bdf7d119c387632e6a7e258255deb75ec8e [diff] | |
parent | 2498eae50598c78b805d467fa67518c858442c76 [diff] |
Snap for 11135477 from 2498eae50598c78b805d467fa67518c858442c76 to 24Q1-release Change-Id: Id187fd79e02ae474962d95f4e0dde531de5e8a86
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