mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
e8a60d2eab
The updated wgpu has the coordinate space fixes. Depends on - https://phabricator.services.mozilla.com/D70421 - https://phabricator.services.mozilla.com/D70432 - https://phabricator.services.mozilla.com/D70646 Differential Revision: https://phabricator.services.mozilla.com/D70140 --HG-- rename : third_party/rust/rendy-descriptor/Cargo.toml => third_party/rust/gfx-descriptor/Cargo.toml rename : third_party/rust/rendy-memory/Cargo.toml => third_party/rust/gfx-memory/Cargo.toml rename : third_party/rust/rendy-memory/src/allocator/dynamic.rs => third_party/rust/gfx-memory/src/allocator/general.rs rename : third_party/rust/rendy-memory/src/heaps/heap.rs => third_party/rust/gfx-memory/src/heaps/heap.rs rename : third_party/rust/rendy-memory/src/utilization.rs => third_party/rust/gfx-memory/src/stats.rs extra : moz-landing-system : lando |
||
---|---|---|
.. | ||
benches | ||
scripts | ||
.cargo-checksum.json | ||
Cargo.toml | ||
lib.rs | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md | ||
specialization.rs |
rust-smallvec
"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();