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/slice | |
| parent | 02477f6f99c22509825a85bd090e42f935b33983 (diff) | |
| download | rust-ce47dde59f45d55fa27dce9a614d1a972f9d8a4f.tar.gz rust-ce47dde59f45d55fa27dce9a614d1a972f9d8a4f.zip | |
Add is_sorted unstable documentation
Diffstat (limited to 'src/libcore/slice')
| -rw-r--r-- | src/libcore/slice/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/slice/mod.rs b/src/libcore/slice/mod.rs index d4cac3e4f4b..ab160a6c0c4 100644 --- a/src/libcore/slice/mod.rs +++ b/src/libcore/slice/mod.rs @@ -2272,6 +2272,7 @@ impl<T> [T] { /// assert!(empty.is_sorted()); /// assert!(![0.0, 1.0, std::f32::NAN].is_sorted()); /// ``` + #[inline] #[unstable(feature = "is_sorted", reason = "new API", issue = "53485")] pub fn is_sorted(&self) -> bool where @@ -2319,6 +2320,7 @@ impl<T> [T] { /// assert!(["c", "bb", "aaa"].is_sorted_by_key(|s| s.len())); /// assert!(![-2i32, -1, 0, 3].is_sorted_by_key(|n| n.abs())); /// ``` + #[inline] #[unstable(feature = "is_sorted", reason = "new API", issue = "53485")] pub fn is_sorted_by_key<F, K>(&self, mut f: F) -> bool where |
