servo / rust-smallvec

"Small vector" optimization for Rust: store up to a small number of items on the stack
Apache License 2.0
1.32k stars 141 forks source link

Implement SmallVec::split_off #340

Closed arthurprs closed 6 months ago

arthurprs commented 6 months ago

Implements SmallVec::split_off, which is like an optimized from_iter(other.drain(at..)). This also includes some recent developments from Vec.

Also includes a commit for mentioning drain_filter feature in the top level docs.