Skip to content

Commit fc18a2e

Browse files
committed
Document drain_filter features.
1 parent 3e20520 commit fc18a2e

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib.rs

+13
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,19 @@
5656
//! For details, see the
5757
//! [Rust Reference](https://doc.rust-lang.org/reference/const_eval.html#const-functions).
5858
//!
59+
//! ### `drain_filter`
60+
//!
61+
//! **This feature is unstable.** It may change to match the unstable `drain_filter` method in libstd.
62+
//!
63+
//! Enables the `drain_filter` method, which produces an iterator that calls a user-provided
64+
//! closure to determine which elements of the vector to remove and yield from the iterator.
65+
//!
66+
//! ### `drain_keep_rest`
67+
//!
68+
//! **This feature is unstable.** It may change to match the unstable `drain_keep_rest` method in libstd.
69+
//!
70+
//! Enables the `DrainFilter::keep_rest` method.
71+
//!
5972
//! ### `specialization`
6073
//!
6174
//! **This feature is unstable and requires a nightly build of the Rust toolchain.**

0 commit comments

Comments
 (0)