tag | fc355652ba9035d7e1db146f1e70f66ac3dedcde | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Aug 22 14:18:35 2022 -0700 |
object | 44d340e7da108de66bf9475e7d7c33aa838e2afd |
Platform Tools Release 33.0.3 (8952118)
commit | 44d340e7da108de66bf9475e7d7c33aa838e2afd | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Aug 16 06:30:52 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Tue Aug 16 06:30:52 2022 +0000 |
tree | e8c805f584b07b27ac90473666626006bbd63932 | |
parent | 62baa345a9bb3ea051039a250a52efa06dfe031b [diff] | |
parent | 483f46228ded54aec62d5eb2eba69415a24c9c7d [diff] |
Snap for 8952093 from 483f46228ded54aec62d5eb2eba69415a24c9c7d to sdk-release Change-Id: I93ca5b68e4dbb58e8d97ccffe5854ef608a6ceb5
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