| commit | 3f37e30c46575d2464e625dbfc1c725a5fb5f19b | [log] [tgz] |
|---|---|---|
| author | Matthew Maurer <mmaurer@google.com> | Thu May 26 12:36:21 2022 -0700 |
| committer | Matthew Maurer <mmaurer@google.com> | Thu May 26 12:36:21 2022 -0700 |
| tree | f9ecff9ff1bf403978b80e122b9fac0d2d2a3369 | |
| parent | 45a4163756baae2fb0dc5dd94aa486fdf29b9a5e [diff] |
Update TEST_MAPPING Test: None Bug: 233924440 Change-Id: If4aa7b847ae48706672d310f098c76d7c656d239
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