commit | 137c1e2ead287823878973bc767a30b727f143c4 | [log] [tgz] |
---|---|---|
author | Jeff Vander Stoep <jeffv@google.com> | Mon Jan 30 14:22:51 2023 +0100 |
committer | Jeff Vander Stoep <jeffv@google.com> | Mon Jan 30 14:22:51 2023 +0100 |
tree | d43d23645a9759d44228504ec1c8c8a680dbf82a | |
parent | ceb662cbb2cb6aaf3bbbab8cdbcaa118e3bb8a4f [diff] |
Update TEST_MAPPING Test: atest Change-Id: I3acfc4d914df70612a97fc5073ba185f6625fc5c
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