Trait wasmtime_wiggle::bitflags::_core::cmp::Ord1.0.0[][src]

pub trait Ord: Eq + PartialOrd<Self> {
    #[must_use]
    fn cmp(&self, other: &Self) -> Ordering;

    #[must_use]
    fn max(self, other: Self) -> Self { ... }
#[must_use] fn min(self, other: Self) -> Self { ... }
#[must_use] fn clamp(self, min: Self, max: Self) -> Self { ... } }
Expand description

Trait for types that form a total order.

An order is a total order if it is (for all a, b and c):

  • total and asymmetric: exactly one of a < b, a == b or a > b is true; and
  • transitive, a < b and b < c implies a < c. The same must hold for both == and >.

Derivable

This trait can be used with #[derive]. When derived on structs, it will produce a lexicographic ordering based on the top-to-bottom declaration order of the struct’s members. When derived on enums, variants are ordered by their top-to-bottom discriminant order.

Lexicographical comparison

Lexicographical comparison is an operation with the following properties:

  • Two sequences are compared element by element.
  • The first mismatching element defines which sequence is lexicographically less or greater than the other.
  • If one sequence is a prefix of another, the shorter sequence is lexicographically less than the other.
  • If two sequence have equivalent elements and are of the same length, then the sequences are lexicographically equal.
  • An empty sequence is lexicographically less than any non-empty sequence.
  • Two empty sequences are lexicographically equal.

How can I implement Ord?

Ord requires that the type also be PartialOrd and Eq (which requires PartialEq).

Then you must define an implementation for cmp. You may find it useful to use cmp on your type’s fields.

Implementations of PartialEq, PartialOrd, and Ord must agree with each other. That is, a.cmp(b) == Ordering::Equal if and only if a == b and Some(a.cmp(b)) == a.partial_cmp(b) for all a and b. It’s easy to accidentally make them disagree by deriving some of the traits and manually implementing others.

Here’s an example where you want to sort people by height only, disregarding id and name:

use std::cmp::Ordering;

#[derive(Eq)]
struct Person {
    id: u32,
    name: String,
    height: u32,
}

impl Ord for Person {
    fn cmp(&self, other: &Self) -> Ordering {
        self.height.cmp(&other.height)
    }
}

impl PartialOrd for Person {
    fn partial_cmp(&self, other: &Self) -> Option<Ordering> {
        Some(self.cmp(other))
    }
}

impl PartialEq for Person {
    fn eq(&self, other: &Self) -> bool {
        self.height == other.height
    }
}

Required methods

#[must_use]
fn cmp(&self, other: &Self) -> Ordering
[src]

This method returns an Ordering between self and other.

By convention, self.cmp(&other) returns the ordering matching the expression self <operator> other if true.

Examples

use std::cmp::Ordering;

assert_eq!(5.cmp(&10), Ordering::Less);
assert_eq!(10.cmp(&5), Ordering::Greater);
assert_eq!(5.cmp(&5), Ordering::Equal);

Provided methods

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values.

Returns the second argument if the comparison determines them to be equal.

Examples

assert_eq!(2, 1.max(2));
assert_eq!(2, 2.max(2));

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values.

Returns the first argument if the comparison determines them to be equal.

Examples

assert_eq!(1, 1.min(2));
assert_eq!(2, 2.min(2));

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval.

Returns max if self is greater than max, and min if self is less than min. Otherwise this returns self.

Panics

Panics if min > max.

Examples

assert!((-3).clamp(-2, 1) == -2);
assert!(0.clamp(-2, 1) == 0);
assert!(2.clamp(-2, 1) == 1);

Implementations on Foreign Types

impl Ord for Path[src]

pub fn cmp(&self, other: &Path) -> Ordering[src]

impl Ord for IpAddr[src]

pub fn cmp(&self, other: &IpAddr) -> Ordering[src]

impl<'_> Ord for Components<'_>[src]

pub fn cmp(&self, other: &Components<'_>) -> Ordering[src]

impl Ord for Ipv6Addr[src]

pub fn cmp(&self, other: &Ipv6Addr) -> Ordering[src]

impl Ord for SystemTime[src]

pub fn cmp(&self, other: &SystemTime) -> Ordering[src]

impl Ord for SocketAddr[src]

pub fn cmp(&self, other: &SocketAddr) -> Ordering[src]

impl Ord for CStr[src]

pub fn cmp(&self, other: &CStr) -> Ordering[src]

impl Ord for SocketAddrV4[src]

pub fn cmp(&self, other: &SocketAddrV4) -> Ordering[src]

impl<'a> Ord for Component<'a>[src]

pub fn cmp(&self, other: &Component<'a>) -> Ordering[src]

impl Ord for CString[src]

pub fn cmp(&self, other: &CString) -> Ordering[src]

impl Ord for PathBuf[src]

pub fn cmp(&self, other: &PathBuf) -> Ordering[src]

impl<'a> Ord for Prefix<'a>[src]

pub fn cmp(&self, other: &Prefix<'a>) -> Ordering[src]

impl Ord for ErrorKind[src]

pub fn cmp(&self, other: &ErrorKind) -> Ordering[src]

impl Ord for Instant[src]

pub fn cmp(&self, other: &Instant) -> Ordering[src]

impl Ord for OsStr[src]

pub fn cmp(&self, other: &OsStr) -> Ordering[src]

impl Ord for Ipv4Addr[src]

pub fn cmp(&self, other: &Ipv4Addr) -> Ordering[src]

impl Ord for OsString[src]

pub fn cmp(&self, other: &OsString) -> Ordering[src]

impl Ord for SocketAddrV6[src]

pub fn cmp(&self, other: &SocketAddrV6) -> Ordering[src]

impl<'_> Ord for PrefixComponent<'_>[src]

pub fn cmp(&self, other: &PrefixComponent<'_>) -> Ordering[src]

impl<Ret> Ord for unsafe extern "C" fn() -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn() -> Ret) -> Ordering[src]

impl<Ret> Ord for unsafe fn() -> Ret[src]

pub fn cmp(&self, other: &unsafe fn() -> Ret) -> Ordering[src]

impl<A, B, C, D, E, F, G, H, I, J, K> Ord for (A, B, C, D, E, F, G, H, I, J, K) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord,
    K: Ord + ?Sized,
    I: Ord,
    G: Ord,
    D: Ord,
    H: Ord,
    J: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I, J, K)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Ord for fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D, E, F, G, H, I, J) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Ordering
[src]

impl<Ret, A, B> Ord for unsafe extern "C" fn(A, B, ...) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A, B, ...) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D> Ord for unsafe extern "C" fn(A, B, C, D, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D> Ord for fn(A, B, C, D) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E> Ord for fn(A, B, C, D, E) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D, E) -> Ret) -> Ordering[src]

impl<A, B, C, D, E, F> Ord for (A, B, C, D, E, F) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord + ?Sized,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Ord for unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Ordering
[src]

impl<Ret, A, B> Ord for fn(A, B) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G> Ord for extern "C" fn(A, B, C, D, E, F, G) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, D, E, F, G) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E> Ord for unsafe fn(A, B, C, D, E) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B, C, D, E) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G> Ord for extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
) -> Ordering
[src]

impl Ord for char[src]

pub fn cmp(&self, other: &char) -> Ordering[src]

impl Ord for i8[src]

pub fn cmp(&self, other: &i8) -> Ordering[src]

impl<Ret, A, B, C, D, E, F> Ord for fn(A, B, C, D, E, F) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D, E, F) -> Ret) -> Ordering[src]

impl<A, B, C, D, E, F, G> Ord for (A, B, C, D, E, F, G) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord,
    G: Ord + ?Sized,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G)) -> Ordering[src]

impl<Ret, A, B, C, D, E> Ord for unsafe extern "C" fn(A, B, C, D, E) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E) -> Ret
) -> Ordering
[src]

impl<Ret, A> Ord for unsafe extern "C" fn(A) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A) -> Ret) -> Ordering[src]

impl<A, B, C, D, E, F, G, H> Ord for (A, B, C, D, E, F, G, H) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord,
    G: Ord,
    D: Ord,
    H: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Ordering
[src]

impl Ord for u8[src]

pub fn cmp(&self, other: &u8) -> Ordering[src]

impl<Ret, A, B, C, D> Ord for unsafe fn(A, B, C, D) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B, C, D) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H> Ord for extern "C" fn(A, B, C, D, E, F, G, H) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
) -> Ordering
[src]

impl Ord for u128[src]

pub fn cmp(&self, other: &u128) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F> Ord for extern "C" fn(A, B, C, D, E, F, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B> Ord for unsafe extern "C" fn(A, B) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A, B) -> Ret) -> Ordering[src]

impl<A, B, C, D, E> Ord for (A, B, C, D, E) where
    C: Ord,
    E: Ord + ?Sized,
    A: Ord,
    B: Ord,
    D: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E)) -> Ordering[src]

impl Ord for u32[src]

pub fn cmp(&self, other: &u32) -> Ordering[src]

impl<Ret> Ord for extern "C" fn() -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn() -> Ret) -> Ordering[src]

impl<Ret, A, B> Ord for extern "C" fn(A, B, ...) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, ...) -> Ret) -> Ordering[src]

impl<T> Ord for *mut T where
    T: ?Sized
[src]

pub fn cmp(&self, other: &*mut T) -> Ordering[src]

impl<A, B, C> Ord for (A, B, C) where
    C: Ord + ?Sized,
    A: Ord,
    B: Ord
[src]

pub fn cmp(&self, other: &(A, B, C)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F> Ord for extern "C" fn(A, B, C, D, E, F) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, D, E, F) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F> Ord for unsafe fn(A, B, C, D, E, F) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B, C, D, E, F) -> Ret) -> Ordering[src]

impl Ord for isize[src]

pub fn cmp(&self, other: &isize) -> Ordering[src]

impl Ord for u16[src]

pub fn cmp(&self, other: &u16) -> Ordering[src]

impl<T> Ord for [T] where
    T: Ord
[src]

Implements comparison of vectors lexicographically.

pub fn cmp(&self, other: &[T]) -> Ordering[src]

impl<Ret, A, B, C, D> Ord for unsafe extern "C" fn(A, B, C, D) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A, B, C, D) -> Ret) -> Ordering[src]

impl<'_, A> Ord for &'_ mut A where
    A: Ord + ?Sized
[src]

pub fn cmp(&self, other: &&'_ mut A) -> Ordering[src]

impl Ord for i128[src]

pub fn cmp(&self, other: &i128) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Ord for unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Ordering
[src]

impl<A, B, C, D, E, F, G, H, I, J, K, L> Ord for (A, B, C, D, E, F, G, H, I, J, K, L) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord,
    K: Ord,
    I: Ord,
    G: Ord,
    D: Ord,
    H: Ord,
    J: Ord,
    L: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I, J, K, L)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Ord for fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret[src]

pub fn cmp(
    &self,
    other: &fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Ordering
[src]

impl Ord for ()[src]

pub fn cmp(&self, _other: &()) -> Ordering[src]

impl<A, B> Ord for (A, B) where
    A: Ord,
    B: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B)) -> Ordering[src]

impl<Ret, A, B, C, D> Ord for extern "C" fn(A, B, C, D) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, D) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Ord for unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret
) -> Ordering
[src]

impl<T, const N: usize> Ord for [T; N] where
    T: Ord
[src]

Implements comparison of arrays lexicographically.

pub fn cmp(&self, other: &[T; N]) -> Ordering[src]

impl<Ret, A, B, C, D, E> Ord for extern "C" fn(A, B, C, D, E, ...) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, D, E, ...) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
) -> Ordering
[src]

impl<A, B, C, D, E, F, G, H, I> Ord for (A, B, C, D, E, F, G, H, I) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord,
    I: Ord + ?Sized,
    G: Ord,
    D: Ord,
    H: Ord
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G> Ord for fn(A, B, C, D, E, F, G) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D, E, F, G) -> Ret) -> Ordering[src]

impl<Ret, A, B, C> Ord for fn(A, B, C) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C) -> Ret) -> Ordering[src]

impl<Ret, A, B, C> Ord for extern "C" fn(A, B, C) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F> Ord for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H> Ord for fn(A, B, C, D, E, F, G, H) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D, E, F, G, H) -> Ret) -> Ordering[src]

impl Ord for i64[src]

pub fn cmp(&self, other: &i64) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Ord for fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

pub fn cmp(
    &self,
    other: &fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Ordering
[src]

impl<Ret> Ord for fn() -> Ret[src]

pub fn cmp(&self, other: &fn() -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C> Ord for unsafe extern "C" fn(A, B, C, ...) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A, B, C, ...) -> Ret) -> Ordering[src]

impl<Ret, A, B, C> Ord for unsafe extern "C" fn(A, B, C) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A, B, C) -> Ret) -> Ordering[src]

impl<Ret, A> Ord for unsafe fn(A) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A) -> Ret) -> Ordering[src]

impl<A> Ord for (A,) where
    A: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A,)) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
) -> Ordering
[src]

impl Ord for i16[src]

pub fn cmp(&self, other: &i16) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
) -> Ordering
[src]

impl<A, B, C, D, E, F, G, H, I, J> Ord for (A, B, C, D, E, F, G, H, I, J) where
    C: Ord,
    E: Ord,
    A: Ord,
    B: Ord,
    F: Ord,
    I: Ord,
    G: Ord,
    D: Ord,
    H: Ord,
    J: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B, C, D, E, F, G, H, I, J)) -> Ordering[src]

impl Ord for str[src]

Implements ordering of strings.

Strings are ordered lexicographically by their byte values. This orders Unicode code points based on their positions in the code charts. This is not necessarily the same as “alphabetical” order, which varies by language and locale. Sorting strings according to culturally-accepted standards requires locale-specific data that is outside the scope of the str type.

pub fn cmp(&self, other: &str) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G> Ord for unsafe fn(A, B, C, D, E, F, G) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B, C, D, E, F, G) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Ordering
[src]

impl<Ret, A> Ord for fn(A) -> Ret[src]

pub fn cmp(&self, other: &fn(A) -> Ret) -> Ordering[src]

impl<Ret, A> Ord for extern "C" fn(A, ...) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, ...) -> Ret) -> Ordering[src]

impl<Ret, A> Ord for unsafe extern "C" fn(A, ...) -> Ret[src]

pub fn cmp(&self, other: &unsafe extern "C" fn(A, ...) -> Ret) -> Ordering[src]

impl Ord for u64[src]

pub fn cmp(&self, other: &u64) -> Ordering[src]

impl<T> Ord for *const T where
    T: ?Sized
[src]

pub fn cmp(&self, other: &*const T) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H> Ord for extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A> Ord for extern "C" fn(A) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A) -> Ret) -> Ordering[src]

impl<Ret, A, B, C> Ord for unsafe fn(A, B, C) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B, C) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D> Ord for extern "C" fn(A, B, C, D, ...) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, D, ...) -> Ret) -> Ordering[src]

impl<'_, A> Ord for &'_ A where
    A: Ord + ?Sized
[src]

pub fn cmp(&self, other: &&'_ A) -> Ordering[src]

impl<Ret, A, B, C, D, E> Ord for unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Ord for fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

pub fn cmp(&self, other: &fn(A, B, C, D, E, F, G, H, I) -> Ret) -> Ordering[src]

impl Ord for usize[src]

pub fn cmp(&self, other: &usize) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H> Ord for unsafe fn(A, B, C, D, E, F, G, H) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B, C, D, E, F, G, H) -> Ret) -> Ordering[src]

impl<Ret, A, B> Ord for unsafe fn(A, B) -> Ret[src]

pub fn cmp(&self, other: &unsafe fn(A, B) -> Ret) -> Ordering[src]

impl<Ret, A, B, C> Ord for extern "C" fn(A, B, C, ...) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, ...) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E> Ord for extern "C" fn(A, B, C, D, E) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B, C, D, E) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F> Ord for unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret
) -> Ordering
[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Ord for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Ordering
[src]

impl Ord for bool[src]

pub fn cmp(&self, other: &bool) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Ord for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

pub fn cmp(
    &self,
    other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Ordering
[src]

impl<Ret, A, B> Ord for extern "C" fn(A, B) -> Ret[src]

pub fn cmp(&self, other: &extern "C" fn(A, B) -> Ret) -> Ordering[src]

impl<Ret, A, B, C, D, E, F, G, H, I, J, K> Ord for unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret[src]

pub fn cmp(
    &self,
    other: &unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Ordering
[src]

impl Ord for ![src]

pub fn cmp(&self, &!) -> Ordering[src]

impl Ord for i32[src]

pub fn cmp(&self, other: &i32) -> Ordering[src]

impl<A, B, C, D> Ord for (A, B, C, D) where
    C: Ord,
    A: Ord,
    B: Ord,
    D: Ord + ?Sized
[src]

pub fn cmp(&self, other: &(A, B, C, D)) -> Ordering[src]

impl<T> Ord for Rc<T> where
    T: Ord + ?Sized
[src]

pub fn cmp(&self, other: &Rc<T>) -> Ordering[src]

Comparison for two Rcs.

The two are compared by calling cmp() on their inner values.

Examples

use std::rc::Rc;
use std::cmp::Ordering;

let five = Rc::new(5);

assert_eq!(Ordering::Less, five.cmp(&Rc::new(6)));

impl<T, A> Ord for Vec<T, A> where
    T: Ord,
    A: Allocator
[src]

Implements ordering of vectors, lexicographically.

pub fn cmp(&self, other: &Vec<T, A>) -> Ordering[src]

impl<T> Ord for LinkedList<T> where
    T: Ord
[src]

pub fn cmp(&self, other: &LinkedList<T>) -> Ordering[src]

impl<K, V> Ord for BTreeMap<K, V> where
    K: Ord,
    V: Ord
[src]

pub fn cmp(&self, other: &BTreeMap<K, V>) -> Ordering[src]

impl<'_, B> Ord for Cow<'_, B> where
    B: Ord + ToOwned + ?Sized
[src]

pub fn cmp(&self, other: &Cow<'_, B>) -> Ordering[src]

impl<A> Ord for VecDeque<A> where
    A: Ord
[src]

pub fn cmp(&self, other: &VecDeque<A>) -> Ordering[src]

impl Ord for String[src]

pub fn cmp(&self, other: &String) -> Ordering[src]

impl<T> Ord for Arc<T> where
    T: Ord + ?Sized
[src]

pub fn cmp(&self, other: &Arc<T>) -> Ordering[src]

Comparison for two Arcs.

The two are compared by calling cmp() on their inner values.

Examples

use std::sync::Arc;
use std::cmp::Ordering;

let five = Arc::new(5);

assert_eq!(Ordering::Less, five.cmp(&Arc::new(6)));

impl<T, A> Ord for Box<T, A> where
    T: Ord + ?Sized,
    A: Allocator
[src]

pub fn cmp(&self, other: &Box<T, A>) -> Ordering[src]

impl<T> Ord for BTreeSet<T> where
    T: Ord
[src]

pub fn cmp(&self, other: &BTreeSet<T>) -> Ordering[src]

impl Ord for Span

pub fn cmp(&self, other: &Span) -> Ordering

impl<'a> Ord for MetadataBuilder<'a>[src]

pub fn cmp(&self, other: &MetadataBuilder<'a>) -> Ordering[src]

impl Ord for LevelFilter[src]

pub fn cmp(&self, other: &LevelFilter) -> Ordering[src]

impl Ord for Level[src]

pub fn cmp(&self, other: &Level) -> Ordering[src]

impl<'a> Ord for Metadata<'a>[src]

pub fn cmp(&self, other: &Metadata<'a>) -> Ordering[src]

impl<A> Ord for SmallVec<A> where
    A: Array,
    <A as Array>::Item: Ord

pub fn cmp(&self, other: &SmallVec<A>) -> Ordering

impl Ord for JumpTable

pub fn cmp(&self, other: &JumpTable) -> Ordering

impl Ord for StackSlot

pub fn cmp(&self, other: &StackSlot) -> Ordering

impl Ord for Table

pub fn cmp(&self, other: &Table) -> Ordering

impl Ord for SigRef

pub fn cmp(&self, other: &SigRef) -> Ordering

impl Ord for Heap

pub fn cmp(&self, other: &Heap) -> Ordering

impl Ord for FuncRef

pub fn cmp(&self, other: &FuncRef) -> Ordering

impl Ord for MachLabel

pub fn cmp(&self, other: &MachLabel) -> Ordering

impl Ord for Immediate

pub fn cmp(&self, other: &Immediate) -> Ordering

impl Ord for Inst

pub fn cmp(&self, other: &Inst) -> Ordering

impl Ord for Constant

pub fn cmp(&self, other: &Constant) -> Ordering

impl Ord for AnyEntity

pub fn cmp(&self, other: &AnyEntity) -> Ordering

impl Ord for Block

pub fn cmp(&self, other: &Block) -> Ordering

impl Ord for GlobalValue

pub fn cmp(&self, other: &GlobalValue) -> Ordering

impl Ord for Value

pub fn cmp(&self, other: &Value) -> Ordering

impl<T> Ord for PackedOption<T> where
    T: Ord + ReservedValue, 

pub fn cmp(&self, other: &PackedOption<T>) -> Ordering

impl Ord for DwVis

pub fn cmp(&self, other: &DwVis) -> Ordering

impl Ord for DwLnct

pub fn cmp(&self, other: &DwLnct) -> Ordering

impl Ord for DwOrd

pub fn cmp(&self, other: &DwOrd) -> Ordering

impl Ord for SectionId

pub fn cmp(&self, other: &SectionId) -> Ordering

impl Ord for DwMacro

pub fn cmp(&self, other: &DwMacro) -> Ordering

impl<T> Ord for DebugTypesOffset<T> where
    T: Ord

pub fn cmp(&self, other: &DebugTypesOffset<T>) -> Ordering

impl Ord for ColumnType

pub fn cmp(&self, other: &ColumnType) -> Ordering

impl Ord for DwDsc

pub fn cmp(&self, other: &DwDsc) -> Ordering

impl Ord for DwLle

pub fn cmp(&self, other: &DwLle) -> Ordering

impl Ord for DwAddr

pub fn cmp(&self, other: &DwAddr) -> Ordering

impl Ord for DwCfa

pub fn cmp(&self, other: &DwCfa) -> Ordering

impl<T> Ord for UnitOffset<T> where
    T: Ord

pub fn cmp(&self, other: &UnitOffset<T>) -> Ordering

impl Ord for DwEnd

pub fn cmp(&self, other: &DwEnd) -> Ordering

impl Ord for DwIdx

pub fn cmp(&self, other: &DwIdx) -> Ordering

impl Ord for DwForm

pub fn cmp(&self, other: &DwForm) -> Ordering

impl Ord for ArangeEntry

pub fn cmp(&self, other: &ArangeEntry) -> Ordering

impl<T> Ord for DebugInfoOffset<T> where
    T: Ord

pub fn cmp(&self, other: &DebugInfoOffset<T>) -> Ordering

impl Ord for DwDefaulted

pub fn cmp(&self, other: &DwDefaulted) -> Ordering

impl Ord for DwAccess

pub fn cmp(&self, other: &DwAccess) -> Ordering

impl Ord for DwTag

pub fn cmp(&self, other: &DwTag) -> Ordering

impl Ord for DwInl

pub fn cmp(&self, other: &DwInl) -> Ordering

impl Ord for Register

pub fn cmp(&self, other: &Register) -> Ordering

impl Ord for DwLang

pub fn cmp(&self, other: &DwLang) -> Ordering

impl Ord for DwVirtuality

pub fn cmp(&self, other: &DwVirtuality) -> Ordering

impl Ord for DwCc

pub fn cmp(&self, other: &DwCc) -> Ordering

impl Ord for DwDs

pub fn cmp(&self, other: &DwDs) -> Ordering

impl Ord for DwEhPe

pub fn cmp(&self, other: &DwEhPe) -> Ordering

impl Ord for DwRle

pub fn cmp(&self, other: &DwRle) -> Ordering

impl Ord for DwAte

pub fn cmp(&self, other: &DwAte) -> Ordering

impl Ord for DwLne

pub fn cmp(&self, other: &DwLne) -> Ordering

impl Ord for DwId

pub fn cmp(&self, other: &DwId) -> Ordering

impl Ord for DwAt

pub fn cmp(&self, other: &DwAt) -> Ordering

impl Ord for DwUt

pub fn cmp(&self, other: &DwUt) -> Ordering

impl Ord for DwOp

pub fn cmp(&self, other: &DwOp) -> Ordering

impl Ord for DwLns

pub fn cmp(&self, other: &DwLns) -> Ordering

impl<T> Ord for UnitSectionOffset<T> where
    T: Ord

pub fn cmp(&self, other: &UnitSectionOffset<T>) -> Ordering

impl Ord for DwChildren

pub fn cmp(&self, other: &DwChildren) -> Ordering

impl Ord for BlockIx

pub fn cmp(&self, other: &BlockIx) -> Ordering

impl<R> Ord for Writable<R> where
    R: Ord + WritableBase, 

pub fn cmp(&self, other: &Writable<R>) -> Ordering

impl Ord for VirtualReg

pub fn cmp(&self, other: &VirtualReg) -> Ordering

impl Ord for Reg

pub fn cmp(&self, other: &Reg) -> Ordering

impl Ord for RealReg

pub fn cmp(&self, other: &RealReg) -> Ordering

impl Ord for InstIx

pub fn cmp(&self, other: &InstIx) -> Ordering

impl Ord for SpillSlot

pub fn cmp(&self, other: &SpillSlot) -> Ordering

impl Ord for MemoryIndex

pub fn cmp(&self, other: &MemoryIndex) -> Ordering

impl Ord for SignatureIndex

pub fn cmp(&self, other: &SignatureIndex) -> Ordering

impl Ord for TypeIndex

pub fn cmp(&self, other: &TypeIndex) -> Ordering

impl Ord for TableIndex

pub fn cmp(&self, other: &TableIndex) -> Ordering

impl Ord for InstanceTypeIndex

pub fn cmp(&self, other: &InstanceTypeIndex) -> Ordering

impl Ord for GlobalIndex

pub fn cmp(&self, other: &GlobalIndex) -> Ordering

impl Ord for DefinedGlobalIndex

pub fn cmp(&self, other: &DefinedGlobalIndex) -> Ordering

impl Ord for ElemIndex

pub fn cmp(&self, other: &ElemIndex) -> Ordering

impl Ord for ModuleTypeIndex

pub fn cmp(&self, other: &ModuleTypeIndex) -> Ordering

impl Ord for EntityIndex

pub fn cmp(&self, other: &EntityIndex) -> Ordering

impl Ord for EventIndex

pub fn cmp(&self, other: &EventIndex) -> Ordering

impl Ord for DefinedTableIndex

pub fn cmp(&self, other: &DefinedTableIndex) -> Ordering

impl Ord for DataIndex

pub fn cmp(&self, other: &DataIndex) -> Ordering

impl Ord for ModuleIndex

pub fn cmp(&self, other: &ModuleIndex) -> Ordering

impl Ord for InstanceIndex

pub fn cmp(&self, other: &InstanceIndex) -> Ordering

impl Ord for FuncIndex

pub fn cmp(&self, other: &FuncIndex) -> Ordering

impl Ord for DefinedMemoryIndex

pub fn cmp(&self, other: &DefinedMemoryIndex) -> Ordering

impl Ord for DefinedFuncIndex

pub fn cmp(&self, other: &DefinedFuncIndex) -> Ordering

impl<'a> Ord for SectionCode<'a>

pub fn cmp(&self, other: &SectionCode<'a>) -> Ordering

impl Ord for Range

pub fn cmp(&self, other: &Range) -> Ordering

impl Ord for CustomSectionKind

pub fn cmp(&self, other: &CustomSectionKind) -> Ordering

impl<L, R> Ord for Either<L, R> where
    R: Ord,
    L: Ord
[src]

pub fn cmp(&self, other: &Either<L, R>) -> Ordering[src]

impl Ord for StandardSection

pub fn cmp(&self, other: &StandardSection) -> Ordering

impl<E> Ord for U64Bytes<E> where
    E: Ord + Endian, 

pub fn cmp(&self, other: &U64Bytes<E>) -> Ordering

impl Ord for ComdatId

pub fn cmp(&self, other: &ComdatId) -> Ordering

impl<E> Ord for I64Bytes<E> where
    E: Ord + Endian, 

pub fn cmp(&self, other: &I64Bytes<E>) -> Ordering

impl Ord for SectionId

pub fn cmp(&self, other: &SectionId) -> Ordering

impl<E> Ord for U32Bytes<E> where
    E: Ord + Endian, 

pub fn cmp(&self, other: &U32Bytes<E>) -> Ordering

impl Ord for StandardSegment

pub fn cmp(&self, other: &StandardSegment) -> Ordering

impl Ord for SymbolId

pub fn cmp(&self, other: &SymbolId) -> Ordering

impl<E> Ord for I16Bytes<E> where
    E: Ord + Endian, 

pub fn cmp(&self, other: &I16Bytes<E>) -> Ordering

impl<E> Ord for I32Bytes<E> where
    E: Ord + Endian, 

pub fn cmp(&self, other: &I32Bytes<E>) -> Ordering

impl<E> Ord for U16Bytes<E> where
    E: Ord + Endian, 

pub fn cmp(&self, other: &U16Bytes<E>) -> Ordering

impl Ord for Protection

pub fn cmp(&self, other: &Protection) -> Ordering

impl Ord for DemangleNodeType

pub fn cmp(&self, other: &DemangleNodeType) -> Ordering

Implementors

impl Ord for Infallible1.34.0[src]

pub fn cmp(&self, _other: &Infallible) -> Ordering[src]

impl Ord for Ordering[src]

pub fn cmp(&self, other: &Ordering) -> Ordering[src]

impl Ord for wasmtime_wiggle::tracing::metadata::LevelFilter[src]

pub fn cmp(&self, other: &LevelFilter) -> Ordering[src]

impl Ord for wasmtime_wiggle::tracing::Level[src]

pub fn cmp(&self, other: &Level) -> Ordering[src]

impl Ord for SizeAlign[src]

pub fn cmp(&self, other: &SizeAlign) -> Ordering[src]

impl Ord for TypeId[src]

pub fn cmp(&self, other: &TypeId) -> Ordering[src]

impl Ord for CpuidResult1.27.0[src]

pub fn cmp(&self, other: &CpuidResult) -> Ordering[src]

impl Ord for Error[src]

pub fn cmp(&self, other: &Error) -> Ordering[src]

impl Ord for PhantomPinned1.33.0[src]

pub fn cmp(&self, other: &PhantomPinned) -> Ordering[src]

impl Ord for NonZeroI81.34.0[src]

pub fn cmp(&self, other: &NonZeroI8) -> Ordering[src]

impl Ord for NonZeroI161.34.0[src]

pub fn cmp(&self, other: &NonZeroI16) -> Ordering[src]

impl Ord for NonZeroI321.34.0[src]

pub fn cmp(&self, other: &NonZeroI32) -> Ordering[src]

impl Ord for NonZeroI641.34.0[src]

pub fn cmp(&self, other: &NonZeroI64) -> Ordering[src]

impl Ord for NonZeroI1281.34.0[src]

pub fn cmp(&self, other: &NonZeroI128) -> Ordering[src]

impl Ord for NonZeroIsize1.34.0[src]

pub fn cmp(&self, other: &NonZeroIsize) -> Ordering[src]

impl Ord for NonZeroU81.28.0[src]

pub fn cmp(&self, other: &NonZeroU8) -> Ordering[src]

impl Ord for NonZeroU161.28.0[src]

pub fn cmp(&self, other: &NonZeroU16) -> Ordering[src]

impl Ord for NonZeroU321.28.0[src]

pub fn cmp(&self, other: &NonZeroU32) -> Ordering[src]

impl Ord for NonZeroU641.28.0[src]

pub fn cmp(&self, other: &NonZeroU64) -> Ordering[src]

impl Ord for NonZeroU1281.28.0[src]

pub fn cmp(&self, other: &NonZeroU128) -> Ordering[src]

impl Ord for NonZeroUsize1.28.0[src]

pub fn cmp(&self, other: &NonZeroUsize) -> Ordering[src]

impl Ord for NoneError[src]

pub fn cmp(&self, other: &NoneError) -> Ordering[src]

impl Ord for Duration1.3.0[src]

pub fn cmp(&self, other: &Duration) -> Ordering[src]

impl<'a> Ord for Location<'a>1.10.0[src]

pub fn cmp(&self, other: &Location<'a>) -> Ordering[src]

impl<Dyn> Ord for DynMetadata<Dyn> where
    Dyn: ?Sized
[src]

pub fn cmp(&self, other: &DynMetadata<Dyn>) -> Ordering[src]

impl<P> Ord for Pin<P> where
    P: Deref,
    <P as Deref>::Target: Ord
1.41.0[src]

pub fn cmp(&self, other: &Pin<P>) -> Ordering[src]

impl<T> Ord for Option<T> where
    T: Ord
[src]

pub fn cmp(&self, other: &Option<T>) -> Ordering[src]

impl<T> Ord for Poll<T> where
    T: Ord
1.36.0[src]

pub fn cmp(&self, other: &Poll<T>) -> Ordering[src]

impl<T> Ord for Cell<T> where
    T: Ord + Copy
1.10.0[src]

pub fn cmp(&self, other: &Cell<T>) -> Ordering[src]

impl<T> Ord for RefCell<T> where
    T: Ord + ?Sized
1.10.0[src]

pub fn cmp(&self, other: &RefCell<T>) -> Ordering[src]

Panics

Panics if the value in either RefCell is currently borrowed.

impl<T> Ord for PhantomData<T> where
    T: ?Sized
[src]

pub fn cmp(&self, _other: &PhantomData<T>) -> Ordering[src]

impl<T> Ord for ManuallyDrop<T> where
    T: Ord + ?Sized
1.20.0[src]

pub fn cmp(&self, other: &ManuallyDrop<T>) -> Ordering[src]

impl<T> Ord for Wrapping<T> where
    T: Ord
[src]

pub fn cmp(&self, other: &Wrapping<T>) -> Ordering[src]

impl<T> Ord for NonNull<T> where
    T: ?Sized
1.25.0[src]

pub fn cmp(&self, other: &NonNull<T>) -> Ordering[src]

impl<T> Ord for Reverse<T> where
    T: Ord
1.19.0[src]

pub fn cmp(&self, other: &Reverse<T>) -> Ordering[src]

impl<T, E> Ord for Result<T, E> where
    T: Ord,
    E: Ord
[src]

pub fn cmp(&self, other: &Result<T, E>) -> Ordering[src]

impl<Y, R> Ord for GeneratorState<Y, R> where
    R: Ord,
    Y: Ord
[src]

pub fn cmp(&self, other: &GeneratorState<Y, R>) -> Ordering[src]