| commit | 2c79c76004244126b482974fd1dc0bde38eb7411 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 02:30:14 2023 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 02 02:30:14 2023 +0000 |
| tree | d43d23645a9759d44228504ec1c8c8a680dbf82a | |
| parent | f9dc371caff248931f0c2c2cbdbaf66b1f8208e9 [diff] | |
| parent | e130e61915094e3d5ea9eddf9389a5a74ceaf94c [diff] |
Snap for 9552483 from e130e61915094e3d5ea9eddf9389a5a74ceaf94c to udc-release Change-Id: I86e5830ba5234335a76a7dec6027631705ead434
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