about summary refs log tree commit diff
path: root/src/doc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-01-21 13:55:45 +0000
committerbors <bors@rust-lang.org>2019-01-21 13:55:45 +0000
commit7164a9f151a56316a382d8bc2b15ccf373e129ca (patch)
treef6805eb9f6bf3ca6c37c8c1806a42c88a6c8119f /src/doc
parent0974bdc7e8e0be00fded2309b5f01cd7cbf2d777 (diff)
parentb4766f80775a2635c026626070201356f33d2700 (diff)
downloadrust-7164a9f151a56316a382d8bc2b15ccf373e129ca.tar.gz
rust-7164a9f151a56316a382d8bc2b15ccf373e129ca.zip
Auto merge of #55045 - kleimkuhler:add-std-is_sorted, r=KodrAus
Add `is_sorted` to `Iterator` and `[T]`

This is an initial implementation for the first step of [RFC 2351](https://github.com/rust-lang/rfcs/blob/master/text/2351-is-sorted.md)

Tracking issue: https://github.com/rust-lang/rust/issues/53485
Diffstat (limited to 'src/doc')
-rw-r--r--src/doc/unstable-book/src/library-features/is-sorted.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/doc/unstable-book/src/library-features/is-sorted.md b/src/doc/unstable-book/src/library-features/is-sorted.md
new file mode 100644
index 00000000000..e3b7dc3b28e
--- /dev/null
+++ b/src/doc/unstable-book/src/library-features/is-sorted.md
@@ -0,0 +1,11 @@
+# `is_sorted`
+
+The tracking issue for this feature is: [#53485]
+
+[#53485]: https://github.com/rust-lang/rust/issues/53485
+
+------------------------
+
+Add the methods `is_sorted`, `is_sorted_by` and `is_sorted_by_key` to `[T]`;
+add the methods `is_sorted`, `is_sorted_by` and `is_sorted_by_key` to
+`Iterator`.