Stabilize ordering_helpers.
This commit is contained in:
parent
25c15cdbe0
commit
d86835281b
1 changed files with 12 additions and 12 deletions
|
|
@ -334,7 +334,6 @@ impl Ordering {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ordering_helpers)]
|
||||
/// use std::cmp::Ordering;
|
||||
///
|
||||
/// assert_eq!(Ordering::Less.is_eq(), false);
|
||||
|
|
@ -343,7 +342,8 @@ impl Ordering {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[unstable(feature = "ordering_helpers", issue = "79885")]
|
||||
#[rustc_const_stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
#[stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
pub const fn is_eq(self) -> bool {
|
||||
matches!(self, Equal)
|
||||
}
|
||||
|
|
@ -353,7 +353,6 @@ impl Ordering {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ordering_helpers)]
|
||||
/// use std::cmp::Ordering;
|
||||
///
|
||||
/// assert_eq!(Ordering::Less.is_ne(), true);
|
||||
|
|
@ -362,7 +361,8 @@ impl Ordering {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[unstable(feature = "ordering_helpers", issue = "79885")]
|
||||
#[rustc_const_stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
#[stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
pub const fn is_ne(self) -> bool {
|
||||
!matches!(self, Equal)
|
||||
}
|
||||
|
|
@ -372,7 +372,6 @@ impl Ordering {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ordering_helpers)]
|
||||
/// use std::cmp::Ordering;
|
||||
///
|
||||
/// assert_eq!(Ordering::Less.is_lt(), true);
|
||||
|
|
@ -381,7 +380,8 @@ impl Ordering {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[unstable(feature = "ordering_helpers", issue = "79885")]
|
||||
#[rustc_const_stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
#[stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
pub const fn is_lt(self) -> bool {
|
||||
matches!(self, Less)
|
||||
}
|
||||
|
|
@ -391,7 +391,6 @@ impl Ordering {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ordering_helpers)]
|
||||
/// use std::cmp::Ordering;
|
||||
///
|
||||
/// assert_eq!(Ordering::Less.is_gt(), false);
|
||||
|
|
@ -400,7 +399,8 @@ impl Ordering {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[unstable(feature = "ordering_helpers", issue = "79885")]
|
||||
#[rustc_const_stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
#[stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
pub const fn is_gt(self) -> bool {
|
||||
matches!(self, Greater)
|
||||
}
|
||||
|
|
@ -410,7 +410,6 @@ impl Ordering {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ordering_helpers)]
|
||||
/// use std::cmp::Ordering;
|
||||
///
|
||||
/// assert_eq!(Ordering::Less.is_le(), true);
|
||||
|
|
@ -419,7 +418,8 @@ impl Ordering {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[unstable(feature = "ordering_helpers", issue = "79885")]
|
||||
#[rustc_const_stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
#[stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
pub const fn is_le(self) -> bool {
|
||||
!matches!(self, Greater)
|
||||
}
|
||||
|
|
@ -429,7 +429,6 @@ impl Ordering {
|
|||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(ordering_helpers)]
|
||||
/// use std::cmp::Ordering;
|
||||
///
|
||||
/// assert_eq!(Ordering::Less.is_ge(), false);
|
||||
|
|
@ -438,7 +437,8 @@ impl Ordering {
|
|||
/// ```
|
||||
#[inline]
|
||||
#[must_use]
|
||||
#[unstable(feature = "ordering_helpers", issue = "79885")]
|
||||
#[rustc_const_stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
#[stable(feature = "ordering_helpers", since = "1.53.0")]
|
||||
pub const fn is_ge(self) -> bool {
|
||||
!matches!(self, Less)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue