| commit | d20e4a1e973e23a3f582e90eb4ed675b07d7f100 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:30:20 2022 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:30:20 2022 +0000 |
| tree | 56a6967701ac6101a0d79dd61724d3a4587ceb7a | |
| parent | 264acb3c507a6b8d8a6bdd738000b904f9714880 [diff] | |
| parent | cfe4c678e3381d05752ca8f985d3713329984c3f [diff] |
Snap for 8192848 from cfe4c678e3381d05752ca8f985d3713329984c3f to tm-frc-os-statsd-release Change-Id: I217008392f6b9c376e03cf02453956d11d24720c
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