| commit | 9bec1df910e29bd9e96088e6ff49293cf641a54f | [log] [tgz] |
|---|---|---|
| author | Bob Badour <bbadour@google.com> | Fri Feb 12 14:32:05 2021 -0800 |
| committer | Bob Badour <bbadour@google.com> | Fri Feb 12 14:32:05 2021 -0800 |
| tree | 734da986b3c6a1a7f8d5a31d7e26febcd3087f0c | |
| parent | 64e088875463837528b0840b1b7694b548261df0 [diff] |
[LSC] Add LOCAL_LICENSE_KINDS to external/rust/crates/tinyvec
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-MIT
SPDX-license-identifier-Zlib
to:
Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: I80938f54a7deb33407470a76609b97f7431de649
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