| commit | dd3ab95937dc949547745ad5b13d4db503399e24 | [log] [tgz] |
|---|---|---|
| author | David LeGare <[email protected]> | Thu Mar 03 15:12:03 2022 +0000 |
| committer | Automerger Merge Worker <[email protected]> | Thu Mar 03 15:12:03 2022 +0000 |
| tree | e8c805f584b07b27ac90473666626006bbd63932 | |
| parent | 07f58a451c3f8955acda2d337764dacf5069e024 [diff] | |
| parent | c6cf201b6a75bbc6f0d33cfb27007753fd64817a [diff] |
Update TEST_MAPPING am: 430ec0c1e4 am: 45a4163756 am: 056797c370 am: c6cf201b6a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/tinyvec/+/2006430 Change-Id: Iaa8e42606d4a0807186f57adf8e24a87957dd44f
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