Skip to content

Commit 735b206

Browse files
committed
Mention drain_filter feature in top level docs
1 parent 74075e3 commit 735b206

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@
2626
//! When this feature is enabled, `SmallVec<u8, _>` implements the `std::io::Write` trait.
2727
//! This feature is not compatible with `#![no_std]` programs.
2828
//!
29+
//! ### `drain_filter`
30+
//!
31+
//! **This feature is unstable.** It may change to match the unstable `drain_filter` method in libstd.
32+
//!
33+
//! Enables the `drain_filter` method, which produces an iterator that calls a user-provided
34+
//! closure to determine which elements of the vector to remove and yield from the iterator.
35+
//!
2936
//! ### `specialization`
3037
//!
3138
//! **This feature is unstable and requires a nightly build of the Rust toolchain.**

0 commit comments

Comments
 (0)