| commit | 74666bdf7d119c387632e6a7e258255deb75ec8e | [log] [tgz] |
|---|---|---|
| author | Andrew Walbran <[email protected]> | Fri May 12 20:09:29 2023 +0000 |
| committer | Automerger Merge Worker <[email protected]> | Fri May 12 20:09:29 2023 +0000 |
| tree | 18e54538c3519d090abf406f41563b06a5ae5a76 | |
| parent | b796b7e8f95e3c72ad209e21e800d6d0a9e4cadc [diff] | |
| parent | 16c84f032a9ad0a023dbf53d001da88cce40cb50 [diff] |
Use new no-std flag to cargo2android. am: d4eff4d3b1 am: 3be4d2d758 am: 503669b689 am: 875357c176 am: 125c08f3d0 am: 16c84f032a Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/tinyvec/+/2586809 Change-Id: I12b64b51b95c02f38e02281e6069775c3eeb7a74 Signed-off-by: Automerger Merge Worker <[email protected]>
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