| commit | a9494395048dc5dc05af4ebbb771410382c026e7 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 05:17:27 2023 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 05:17:27 2023 +0000 |
| tree | d43d23645a9759d44228504ec1c8c8a680dbf82a | |
| parent | 63f0d7a5976487168617ef5a37142bc5a0fcbe74 [diff] | |
| parent | 2c79c76004244126b482974fd1dc0bde38eb7411 [diff] |
Snap for 9553927 from 2c79c76004244126b482974fd1dc0bde38eb7411 to udc-d1-release Change-Id: I835ad28758be079ee193ffbf588ebfbf73f94932
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