diff options
| author | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2018-10-12 14:47:01 -0700 |
|---|---|---|
| committer | Kevin Leimkuhler <kevin@kleimkuhler.com> | 2019-01-17 22:34:43 -0800 |
| commit | ce47dde59f45d55fa27dce9a614d1a972f9d8a4f (patch) | |
| tree | 18177d1f5095ade1e718adca6a0cfca73b5c6d6b /src/libcore/iter | |
| parent | 02477f6f99c22509825a85bd090e42f935b33983 (diff) | |
| download | rust-ce47dde59f45d55fa27dce9a614d1a972f9d8a4f.tar.gz rust-ce47dde59f45d55fa27dce9a614d1a972f9d8a4f.zip | |
Add is_sorted unstable documentation
Diffstat (limited to 'src/libcore/iter')
| -rw-r--r-- | src/libcore/iter/iterator.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/iter/iterator.rs b/src/libcore/iter/iterator.rs index 879cc8357cd..67591381fdc 100644 --- a/src/libcore/iter/iterator.rs +++ b/src/libcore/iter/iterator.rs @@ -2626,6 +2626,7 @@ pub trait Iterator { /// assert!(std::iter::empty::<i32>().is_sorted()); /// assert!(![0.0, 1.0, std::f32::NAN].iter().is_sorted()); /// ``` + #[inline] #[unstable(feature = "is_sorted", reason = "new API", issue = "53485")] fn is_sorted(self) -> bool where @@ -2676,6 +2677,7 @@ pub trait Iterator { /// assert!(["c", "bb", "aaa"].iter().is_sorted_by_key(|s| s.len())); /// assert!(![-2i32, -1, 0, 3].iter().is_sorted_by_key(|n| n.abs())); /// ``` + #[inline] #[unstable(feature = "is_sorted", reason = "new API", issue = "53485")] fn is_sorted_by_key<F, K>(self, mut f: F) -> bool where |
