openharmony_ci b092e03ed0 !4 OAT告警屏蔽配置更新
Merge pull request !4 from peizhe/master
2023-05-16 09:33:30 +00:00
2020-10-13 12:16:40 -06:00
2020-01-06 19:29:40 -07:00
2022-04-25 10:34:31 -06:00
2022-04-25 09:36:13 -06:00
2020-10-11 18:42:11 -06:00
2020-01-06 19:29:40 -07:00
2023-05-16 15:29:23 +08:00
2020-08-09 09:13:26 -06:00

License:Zlib Minimum Rust Version crates.io docs.rs

Unsafe-Zero-Percent

tinyvec

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

S
Description
安全的 vec-like 类型库
Readme 845 KiB
Languages
Rust 99.5%
Python 0.3%
Shell 0.2%