mirror of
https://github.com/openharmony/third_party_rust_tinyvec.git
synced 2026-07-21 09:45:24 -04:00
201581d33e480519cca2229dc3922707bc4be2fe
tinyvec
Just, really the littlest Vec you could need. So smol.
This is one of those crates where an initial small number of elements will be
kept on the stack, and then if you overflow that it will quietly transition
everything into being a totally normal alloc::vec::Vec.
What sets this crate apart from others like it is that it has
#![forbid(unsafe_code)] right at the top, and then requires that the element
type have a Default impl. This is a slight restriction compared to a normal
Vec, but that's still a very large number of
types
that you can use.
Description
Languages
Rust
99.5%
Python
0.3%
Shell
0.2%