Mark ab/7061308 as merged in stage.

Bug: 180401296
Merged-In: Ib1995bab25327524c008ae00be310a764aa19f18
Change-Id: I7f0dd62c09e016d2a66865c1a05f2c8b8aed2d3b
tree: 301fc457c178d7a6e8031eb136d7bf951a404406
  1. .cargo_vcs_info.json
  2. .gitignore
  3. .travis.yml
  4. Android.bp
  5. Cargo.toml
  6. Cargo.toml.orig
  7. LICENSE-APACHE
  8. LICENSE-MIT
  9. METADATA
  10. MODULE_LICENSE_APACHE2
  11. OWNERS
  12. README.md
  13. TEST_MAPPING
  14. benches/
  15. scripts/
  16. src/
  17. tests/
README.md

rust-smallvec

Documentation

Release notes

“Small vector” optimization for Rust: store up to a small number of items on the stack

Example

use smallvec::{SmallVec, smallvec};
    
// This SmallVec can hold up to 4 items on the stack:
let mut v: SmallVec<[i32; 4]> = smallvec![1, 2, 3, 4];

// It will automatically move its contents to the heap if
// contains more than four items:
v.push(5);

// SmallVec points to a slice, so you can use normal slice
// indexing and other methods to access its contents:
v[0] = v[1] + v[2];
v.sort();