tag | f26743aaade7438732259c62747a36e82c3018d2 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu May 19 16:26:01 2022 -0700 |
object | 5c0ea1df8dd583edab1f666837dcc23cf276f591 |
Platform Tools Release 33.0.1 (8253317)
commit | 5c0ea1df8dd583edab1f666837dcc23cf276f591 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 04 04:26:03 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Mar 04 04:26:03 2022 +0000 |
tree | e8c805f584b07b27ac90473666626006bbd63932 | |
parent | 683d6a1c05369e5c3ce2afcb96a5c54bc572d5df [diff] | |
parent | 430ec0c1e452889b92ae3ce1f7fcb0429433ae3a [diff] |
Snap for 8253222 from 430ec0c1e452889b92ae3ce1f7fcb0429433ae3a to sdk-release Change-Id: I080521d0a11ae5fd0ce0f06cee79ce8f6a75e68e
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