tag | 3d8c975cb68788ba10ae5467861b8fdce1dcc745 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Nov 10 21:09:00 2022 -0800 |
object | a6a692a07d19c08f94e3e35240ee756bc5743128 |
aml_tz3_312410020
commit | a6a692a07d19c08f94e3e35240ee756bc5743128 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:45:47 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:45:47 2022 +0000 |
tree | 374e6263abc26a82e70c06ffcb32122ace1036af | |
parent | 3858a19d784f32d2528f49be4311daf19e383078 [diff] | |
parent | 7ea82c332b53cf96e691b3c6f5b9ee4ddd75b1ad [diff] |
Snap for 8730993 from 7ea82c332b53cf96e691b3c6f5b9ee4ddd75b1ad to mainline-tzdata3-release Change-Id: Ia75ffdb2903dee58c8b962c44e5e28d3ac9f5955
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