tag | b2097ddf6a6f861c6ca3a4967731451efdbd7afa | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Mar 13 16:45:06 2023 -0700 |
object | 2ee96ba34e518981842394c3fb7fd5e04dd64870 |
Android platform 12.0.0 release 17
commit | 2ee96ba34e518981842394c3fb7fd5e04dd64870 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Thu May 13 01:07:00 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Thu May 13 01:07:00 2021 +0000 |
tree | 374e6263abc26a82e70c06ffcb32122ace1036af | |
parent | cc20b8f408012385e38775b3172d5ebf734f4753 [diff] | |
parent | 863b9e67c6ec84ab45a3dcf8673ecb7199c61a52 [diff] |
Snap for 7357013 from 863b9e67c6ec84ab45a3dcf8673ecb7199c61a52 to sc-release Change-Id: Ic38a3b6a9c19c6c075d103ae11a7e327d05b99c4
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