mirror of
https://github.com/openharmony/third_party_rust_rust-smallvec.git
synced 2026-07-22 18:45:29 -04:00
08cd0414307efbe036d2a00a16e9ac31db32e10b
Includes these changes: * Breaking change: Remove deprecated `SmallVecN` type aliases and `push_all_move` method. * Breaking change: Make `retain` pass `&mut T` to its predicate. * Add new methods `dedup`, `dedup_by`, and `dedup_by_key`. * Deprecate the `VecLike` trait in favor of standard library traits. * Optimize the `Clone` and `Deserialize` implementations to avoid unnecessary reallocation. * Optimize `extend_from_slice` and `insert_from_slice` to use `copy_nonoverlapping`. * Include the text of the Mozilla Public License in the source repo. * Improved documentation.
Import from https://github.com/servo/rust-selectors/blob/e8dd4cfe4d6a40363ca5df468b29121fe25a7956/src/smallvec.rs
rust-smallvec
"Small vector" optimization for Rust: store up to a small number of items on the stack
Description
Languages
Rust
98.8%
Shell
1.2%