Trait otter::prelude::cmp::PartialOrd 1.0.0[−][src]
pub trait PartialOrd<Rhs = Self>: PartialEq<Rhs> where
Rhs: ?Sized, { #[must_use] fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>; #[must_use] fn lt(&self, other: &Rhs) -> bool { ... } #[must_use] fn le(&self, other: &Rhs) -> bool { ... } #[must_use] fn gt(&self, other: &Rhs) -> bool { ... } #[must_use] fn ge(&self, other: &Rhs) -> bool { ... } }
Expand description
Trait for values that can be compared for a sort-order.
The comparison must satisfy, for all a
, b
and c
:
- asymmetry: if
a < b
then!(a > b)
, as well asa > b
implying!(a < b)
; and - transitivity:
a < b
andb < c
impliesa < c
. The same must hold for both==
and>
.
Note that these requirements mean that the trait itself must be implemented symmetrically and
transitively: if T: PartialOrd<U>
and U: PartialOrd<V>
then U: PartialOrd<T>
and T: PartialOrd<V>
.
Derivable
This trait can be used with #[derive]
. When derive
d on structs, it will produce a
lexicographic ordering based on the top-to-bottom declaration order of the struct’s members.
When derive
d on enums, variants are ordered by their top-to-bottom discriminant order.
How can I implement PartialOrd
?
PartialOrd
only requires implementation of the partial_cmp
method, with the others
generated from default implementations.
However it remains possible to implement the others separately for types which do not have a
total order. For example, for floating point numbers, NaN < 0 == false
and NaN >= 0 == false
(cf. IEEE 754-2008 section 5.11).
PartialOrd
requires your type to be PartialEq
.
Implementations of PartialEq
, PartialOrd
, and Ord
must agree with each other. It’s
easy to accidentally make them disagree by deriving some of the traits and manually
implementing others.
If your type is Ord
, you can implement partial_cmp
by using cmp
:
use std::cmp::Ordering; #[derive(Eq)] struct Person { id: u32, name: String, height: u32, } impl PartialOrd for Person { fn partial_cmp(&self, other: &Self) -> Option<Ordering> { Some(self.cmp(other)) } } impl Ord for Person { fn cmp(&self, other: &Self) -> Ordering { self.height.cmp(&other.height) } } impl PartialEq for Person { fn eq(&self, other: &Self) -> bool { self.height == other.height } }
You may also find it useful to use partial_cmp
on your type’s fields. Here
is an example of Person
types who have a floating-point height
field that
is the only field to be used for sorting:
use std::cmp::Ordering; struct Person { id: u32, name: String, height: f64, } impl PartialOrd for Person { fn partial_cmp(&self, other: &Self) -> Option<Ordering> { self.height.partial_cmp(&other.height) } } impl PartialEq for Person { fn eq(&self, other: &Self) -> bool { self.height == other.height } }
Examples
let x : u32 = 0; let y : u32 = 1; assert_eq!(x < y, true); assert_eq!(x.lt(&y), true);
Required methods
#[must_use]fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
[src]
#[must_use]fn partial_cmp(&self, other: &Rhs) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists.
Examples
use std::cmp::Ordering; let result = 1.0.partial_cmp(&2.0); assert_eq!(result, Some(Ordering::Less)); let result = 1.0.partial_cmp(&1.0); assert_eq!(result, Some(Ordering::Equal)); let result = 2.0.partial_cmp(&1.0); assert_eq!(result, Some(Ordering::Greater));
When comparison is impossible:
let result = f64::NAN.partial_cmp(&1.0); assert_eq!(result, None);
Provided methods
This method tests less than (for self
and other
) and is used by the <
operator.
Examples
let result = 1.0 < 2.0; assert_eq!(result, true); let result = 2.0 < 1.0; assert_eq!(result, false);
This method tests less than or equal to (for self
and other
) and is used by the <=
operator.
Examples
let result = 1.0 <= 2.0; assert_eq!(result, true); let result = 2.0 <= 2.0; assert_eq!(result, true);
This method tests greater than (for self
and other
) and is used by the >
operator.
Examples
let result = 1.0 > 2.0; assert_eq!(result, false); let result = 2.0 > 2.0; assert_eq!(result, false);
Implementations on Foreign Types
impl<Ret, A, B> PartialOrd<extern "C" fn(A, B, ...) -> Ret> for extern "C" fn(A, B, ...) -> Ret
[src]
impl<Ret, A, B> PartialOrd<extern "C" fn(A, B, ...) -> Ret> for extern "C" fn(A, B, ...) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E> PartialOrd<unsafe extern "C" fn(A, B, C, D, E) -> Ret> for unsafe extern "C" fn(A, B, C, D, E) -> Ret
[src]
impl<Ret, A, B, C, D, E> PartialOrd<unsafe extern "C" fn(A, B, C, D, E) -> Ret> for unsafe extern "C" fn(A, B, C, D, E) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E) -> Ret
) -> Option<Ordering>
[src]impl<A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<(A, B, C, D, E, F, G, H, I, J, K, L)> for (A, B, C, D, E, F, G, H, I, J, K, L) where
C: PartialOrd<C> + PartialEq<C>,
K: PartialOrd<K> + PartialEq<K>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
L: PartialOrd<L> + PartialEq<L> + ?Sized,
J: PartialOrd<J> + PartialEq<J>,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<(A, B, C, D, E, F, G, H, I, J, K, L)> for (A, B, C, D, E, F, G, H, I, J, K, L) where
C: PartialOrd<C> + PartialEq<C>,
K: PartialOrd<K> + PartialEq<K>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
L: PartialOrd<L> + PartialEq<L> + ?Sized,
J: PartialOrd<J> + PartialEq<J>,
[src]impl<Ret, A, B> PartialOrd<unsafe extern "C" fn(A, B, ...) -> Ret> for unsafe extern "C" fn(A, B, ...) -> Ret
[src]
impl<Ret, A, B> PartialOrd<unsafe extern "C" fn(A, B, ...) -> Ret> for unsafe extern "C" fn(A, B, ...) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D> PartialOrd<extern "C" fn(A, B, C, D) -> Ret> for extern "C" fn(A, B, C, D) -> Ret
[src]
impl<Ret, A, B, C, D> PartialOrd<extern "C" fn(A, B, C, D) -> Ret> for extern "C" fn(A, B, C, D) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<fn(A, B, C, D, E, F, G, H, I) -> Ret> for fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<fn(A, B, C, D, E, F, G, H, I) -> Ret> for fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]impl<Ret, A, B, C, D, E> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F> PartialOrd<unsafe fn(A, B, C, D, E, F) -> Ret> for unsafe fn(A, B, C, D, E, F) -> Ret
[src]
impl<Ret, A, B, C, D, E, F> PartialOrd<unsafe fn(A, B, C, D, E, F) -> Ret> for unsafe fn(A, B, C, D, E, F) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]pub fn partial_cmp(
&self,
other: &fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]pub fn partial_cmp(
&self,
other: &fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Option<Ordering>
[src]impl<'_, '_, A, B> PartialOrd<&'_ mut B> for &'_ mut A where
A: PartialOrd<B> + ?Sized,
B: ?Sized,
[src]
impl<'_, '_, A, B> PartialOrd<&'_ mut B> for &'_ mut A where
A: PartialOrd<B> + ?Sized,
B: ?Sized,
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A> PartialOrd<unsafe extern "C" fn(A, ...) -> Ret> for unsafe extern "C" fn(A, ...) -> Ret
[src]
impl<Ret, A> PartialOrd<unsafe extern "C" fn(A, ...) -> Ret> for unsafe extern "C" fn(A, ...) -> Ret
[src]impl<Ret, A, B, C, D, E, F> PartialOrd<extern "C" fn(A, B, C, D, E, F, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F> PartialOrd<extern "C" fn(A, B, C, D, E, F, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E> PartialOrd<extern "C" fn(A, B, C, D, E, ...) -> Ret> for extern "C" fn(A, B, C, D, E, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E> PartialOrd<extern "C" fn(A, B, C, D, E, ...) -> Ret> for extern "C" fn(A, B, C, D, E, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, ...) -> Ret
) -> Option<Ordering>
[src]impl<A, B, C, D, E, F, G, H, I, J, K> PartialOrd<(A, B, C, D, E, F, G, H, I, J, K)> for (A, B, C, D, E, F, G, H, I, J, K) where
C: PartialOrd<C> + PartialEq<C>,
K: PartialOrd<K> + PartialEq<K> + ?Sized,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
J: PartialOrd<J> + PartialEq<J>,
[src]
impl<A, B, C, D, E, F, G, H, I, J, K> PartialOrd<(A, B, C, D, E, F, G, H, I, J, K)> for (A, B, C, D, E, F, G, H, I, J, K) where
C: PartialOrd<C> + PartialEq<C>,
K: PartialOrd<K> + PartialEq<K> + ?Sized,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
J: PartialOrd<J> + PartialEq<J>,
[src]impl<Ret, A, B, C, D, E> PartialOrd<unsafe fn(A, B, C, D, E) -> Ret> for unsafe fn(A, B, C, D, E) -> Ret
[src]
impl<Ret, A, B, C, D, E> PartialOrd<unsafe fn(A, B, C, D, E) -> Ret> for unsafe fn(A, B, C, D, E) -> Ret
[src]impl<A, B, C, D> PartialOrd<(A, B, C, D)> for (A, B, C, D) where
C: PartialOrd<C> + PartialEq<C>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
D: PartialOrd<D> + PartialEq<D> + ?Sized,
[src]
impl<A, B, C, D> PartialOrd<(A, B, C, D)> for (A, B, C, D) where
C: PartialOrd<C> + PartialEq<C>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
D: PartialOrd<D> + PartialEq<D> + ?Sized,
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Option<Ordering>
[src]impl<A, B, C, D, E, F, G, H> PartialOrd<(A, B, C, D, E, F, G, H)> for (A, B, C, D, E, F, G, H) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H> + ?Sized,
D: PartialOrd<D> + PartialEq<D>,
[src]
impl<A, B, C, D, E, F, G, H> PartialOrd<(A, B, C, D, E, F, G, H)> for (A, B, C, D, E, F, G, H) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H> + ?Sized,
D: PartialOrd<D> + PartialEq<D>,
[src]impl<Ret, A, B, C, D, E, F> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret
[src]
impl<Ret, A, B, C, D, E, F> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F> PartialOrd<fn(A, B, C, D, E, F) -> Ret> for fn(A, B, C, D, E, F) -> Ret
[src]
impl<Ret, A, B, C, D, E, F> PartialOrd<fn(A, B, C, D, E, F) -> Ret> for fn(A, B, C, D, E, F) -> Ret
[src]impl<Ret, A, B, C, D, E, F> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D> PartialOrd<unsafe extern "C" fn(A, B, C, D) -> Ret> for unsafe extern "C" fn(A, B, C, D) -> Ret
[src]
impl<Ret, A, B, C, D> PartialOrd<unsafe extern "C" fn(A, B, C, D) -> Ret> for unsafe extern "C" fn(A, B, C, D) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe fn(A, B, C, D, E, F, G, H) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G> PartialOrd<unsafe fn(A, B, C, D, E, F, G) -> Ret> for unsafe fn(A, B, C, D, E, F, G) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G> PartialOrd<unsafe fn(A, B, C, D, E, F, G) -> Ret> for unsafe fn(A, B, C, D, E, F, G) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
) -> Option<Ordering>
[src]impl<A, B, C, D, E, F, G, H, I, J> PartialOrd<(A, B, C, D, E, F, G, H, I, J)> for (A, B, C, D, E, F, G, H, I, J) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
J: PartialOrd<J> + PartialEq<J> + ?Sized,
[src]
impl<A, B, C, D, E, F, G, H, I, J> PartialOrd<(A, B, C, D, E, F, G, H, I, J)> for (A, B, C, D, E, F, G, H, I, J) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
J: PartialOrd<J> + PartialEq<J> + ?Sized,
[src]impl<Ret, A, B, C, D> PartialOrd<unsafe extern "C" fn(A, B, C, D, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, ...) -> Ret
[src]
impl<Ret, A, B, C, D> PartialOrd<unsafe extern "C" fn(A, B, C, D, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D> PartialOrd<unsafe fn(A, B, C, D) -> Ret> for unsafe fn(A, B, C, D) -> Ret
[src]
impl<Ret, A, B, C, D> PartialOrd<unsafe fn(A, B, C, D) -> Ret> for unsafe fn(A, B, C, D) -> Ret
[src]impl<Ret, A, B, C, D> PartialOrd<extern "C" fn(A, B, C, D, ...) -> Ret> for extern "C" fn(A, B, C, D, ...) -> Ret
[src]
impl<Ret, A, B, C, D> PartialOrd<extern "C" fn(A, B, C, D, ...) -> Ret> for extern "C" fn(A, B, C, D, ...) -> Ret
[src]impl<Ret, A, B, C> PartialOrd<extern "C" fn(A, B, C, ...) -> Ret> for extern "C" fn(A, B, C, ...) -> Ret
[src]
impl<Ret, A, B, C> PartialOrd<extern "C" fn(A, B, C, ...) -> Ret> for extern "C" fn(A, B, C, ...) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]pub fn partial_cmp(
&self,
other: &fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<fn(A, B, C, D, E, F, G, H) -> Ret> for fn(A, B, C, D, E, F, G, H) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<fn(A, B, C, D, E, F, G, H) -> Ret> for fn(A, B, C, D, E, F, G, H) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C> PartialOrd<unsafe extern "C" fn(A, B, C, ...) -> Ret> for unsafe extern "C" fn(A, B, C, ...) -> Ret
[src]
impl<Ret, A, B, C> PartialOrd<unsafe extern "C" fn(A, B, C, ...) -> Ret> for unsafe extern "C" fn(A, B, C, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L, ...) -> Ret
) -> Option<Ordering>
[src]impl<Y, R> PartialOrd<GeneratorState<Y, R>> for GeneratorState<Y, R> where
Y: PartialOrd<Y>,
R: PartialOrd<R>,
[src]
impl<Y, R> PartialOrd<GeneratorState<Y, R>> for GeneratorState<Y, R> where
Y: PartialOrd<Y>,
R: PartialOrd<R>,
[src]impl<Ret, A, B, C> PartialOrd<unsafe extern "C" fn(A, B, C) -> Ret> for unsafe extern "C" fn(A, B, C) -> Ret
[src]
impl<Ret, A, B, C> PartialOrd<unsafe extern "C" fn(A, B, C) -> Ret> for unsafe extern "C" fn(A, B, C) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E> PartialOrd<extern "C" fn(A, B, C, D, E) -> Ret> for extern "C" fn(A, B, C, D, E) -> Ret
[src]
impl<Ret, A, B, C, D, E> PartialOrd<extern "C" fn(A, B, C, D, E) -> Ret> for extern "C" fn(A, B, C, D, E) -> Ret
[src]impl<A, B, C, D, E, F, G, H, I> PartialOrd<(A, B, C, D, E, F, G, H, I)> for (A, B, C, D, E, F, G, H, I) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
[src]
impl<A, B, C, D, E, F, G, H, I> PartialOrd<(A, B, C, D, E, F, G, H, I)> for (A, B, C, D, E, F, G, H, I) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
I: PartialOrd<I> + PartialEq<I> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G>,
H: PartialOrd<H> + PartialEq<H>,
D: PartialOrd<D> + PartialEq<D>,
[src]impl<T, E> PartialOrd<Result<T, E>> for Result<T, E> where
E: PartialOrd<E>,
T: PartialOrd<T>,
[src]
impl<T, E> PartialOrd<Result<T, E>> for Result<T, E> where
E: PartialOrd<E>,
T: PartialOrd<T>,
[src]impl<Ret, A, B, C, D, E, F, G> PartialOrd<fn(A, B, C, D, E, F, G) -> Ret> for fn(A, B, C, D, E, F, G) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G> PartialOrd<fn(A, B, C, D, E, F, G) -> Ret> for fn(A, B, C, D, E, F, G) -> Ret
[src]impl<A, B> PartialOrd<(A, B)> for (A, B) where
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B> + ?Sized,
[src]
impl<A, B> PartialOrd<(A, B)> for (A, B) where
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B> + ?Sized,
[src]impl<Ret, A, B, C, D, E, F> PartialOrd<extern "C" fn(A, B, C, D, E, F) -> Ret> for extern "C" fn(A, B, C, D, E, F) -> Ret
[src]
impl<Ret, A, B, C, D, E, F> PartialOrd<extern "C" fn(A, B, C, D, E, F) -> Ret> for extern "C" fn(A, B, C, D, E, F) -> Ret
[src]impl<Ret, A, B, C, D, E, F, G> PartialOrd<extern "C" fn(A, B, C, D, E, F, G) -> Ret> for extern "C" fn(A, B, C, D, E, F, G) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G> PartialOrd<extern "C" fn(A, B, C, D, E, F, G) -> Ret> for extern "C" fn(A, B, C, D, E, F, G) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, ...) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J> PartialOrd<extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret> for extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
[src]pub fn partial_cmp(
&self,
other: &extern "C" fn(A, B, C, D, E, F, G, H, I, J) -> Ret
) -> Option<Ordering>
[src]impl<Ret, A, B> PartialOrd<unsafe extern "C" fn(A, B) -> Ret> for unsafe extern "C" fn(A, B) -> Ret
[src]
impl<Ret, A, B> PartialOrd<unsafe extern "C" fn(A, B) -> Ret> for unsafe extern "C" fn(A, B) -> Ret
[src]impl<A, B, C, D, E, F> PartialOrd<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
D: PartialOrd<D> + PartialEq<D>,
[src]
impl<A, B, C, D, E, F> PartialOrd<(A, B, C, D, E, F)> for (A, B, C, D, E, F) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
D: PartialOrd<D> + PartialEq<D>,
[src]impl<A, B, C, D, E, F, G> PartialOrd<(A, B, C, D, E, F, G)> for (A, B, C, D, E, F, G) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G> + ?Sized,
D: PartialOrd<D> + PartialEq<D>,
[src]
impl<A, B, C, D, E, F, G> PartialOrd<(A, B, C, D, E, F, G)> for (A, B, C, D, E, F, G) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E>,
F: PartialOrd<F> + PartialEq<F>,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
G: PartialOrd<G> + PartialEq<G> + ?Sized,
D: PartialOrd<D> + PartialEq<D>,
[src]impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I> PartialOrd<unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret> for unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe fn(A, B, C, D, E, F, G, H, I) -> Ret
) -> Option<Ordering>
[src]impl<A, B, C> PartialOrd<(A, B, C)> for (A, B, C) where
C: PartialOrd<C> + PartialEq<C> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
[src]
impl<A, B, C> PartialOrd<(A, B, C)> for (A, B, C) where
C: PartialOrd<C> + PartialEq<C> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
[src]impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G, H, I, J, K, L> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G, H, I, J, K, L) -> Ret
) -> Option<Ordering>
[src]impl<A, B, C, D, E> PartialOrd<(A, B, C, D, E)> for (A, B, C, D, E) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
D: PartialOrd<D> + PartialEq<D>,
[src]
impl<A, B, C, D, E> PartialOrd<(A, B, C, D, E)> for (A, B, C, D, E) where
C: PartialOrd<C> + PartialEq<C>,
E: PartialOrd<E> + PartialEq<E> + ?Sized,
A: PartialOrd<A> + PartialEq<A>,
B: PartialOrd<B> + PartialEq<B>,
D: PartialOrd<D> + PartialEq<D>,
[src]impl<Ret, A, B, C, D, E, F, G> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret
[src]
impl<Ret, A, B, C, D, E, F, G> PartialOrd<unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret> for unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret
[src]pub fn partial_cmp(
&self,
other: &unsafe extern "C" fn(A, B, C, D, E, F, G) -> Ret
) -> Option<Ordering>
[src]Implements comparison operations on strings.
Strings are compared lexicographically by their byte values. This compares 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. Comparing strings according to
culturally-accepted standards requires locale-specific data that is outside the scope of
the str
type.
Partial comparison for two Rc
s.
The two are compared by calling partial_cmp()
on their inner values.
Examples
use std::rc::Rc; use std::cmp::Ordering; let five = Rc::new(5); assert_eq!(Some(Ordering::Less), five.partial_cmp(&Rc::new(6)));
Less-than comparison for two Rc
s.
The two are compared by calling <
on their inner values.
Examples
use std::rc::Rc; let five = Rc::new(5); assert!(five < Rc::new(6));
‘Less than or equal to’ comparison for two Rc
s.
The two are compared by calling <=
on their inner values.
Examples
use std::rc::Rc; let five = Rc::new(5); assert!(five <= Rc::new(5));
Greater-than comparison for two Rc
s.
The two are compared by calling >
on their inner values.
Examples
use std::rc::Rc; let five = Rc::new(5); assert!(five > Rc::new(4));
impl<T, N> PartialOrd<GenericArray<T, N>> for GenericArray<T, N> where
T: PartialOrd<T>,
N: ArrayLength<T>,
impl<T, N> PartialOrd<GenericArray<T, N>> for GenericArray<T, N> where
T: PartialOrd<T>,
N: ArrayLength<T>,
pub fn partial_cmp(&self, other: &GenericArray<T, N>) -> Option<Ordering>
impl PartialOrd<B0> for B0
impl PartialOrd<B0> for B0
pub fn partial_cmp(&self, other: &B0) -> Option<Ordering>
impl PartialOrd<Less> for Less
impl PartialOrd<Less> for Less
pub fn partial_cmp(&self, other: &Less) -> Option<Ordering>
impl PartialOrd<UTerm> for UTerm
impl PartialOrd<UTerm> for UTerm
pub fn partial_cmp(&self, other: &UTerm) -> Option<Ordering>
impl PartialOrd<Z0> for Z0
impl PartialOrd<Z0> for Z0
pub fn partial_cmp(&self, other: &Z0) -> Option<Ordering>
impl<U> PartialOrd<PInt<U>> for PInt<U> where
U: PartialOrd<U> + Unsigned + NonZero,
impl<U> PartialOrd<PInt<U>> for PInt<U> where
U: PartialOrd<U> + Unsigned + NonZero,
pub fn partial_cmp(&self, other: &PInt<U>) -> Option<Ordering>
impl PartialOrd<ATerm> for ATerm
impl PartialOrd<ATerm> for ATerm
pub fn partial_cmp(&self, other: &ATerm) -> Option<Ordering>
impl PartialOrd<B1> for B1
impl PartialOrd<B1> for B1
pub fn partial_cmp(&self, other: &B1) -> Option<Ordering>
impl<U, B> PartialOrd<UInt<U, B>> for UInt<U, B> where
U: PartialOrd<U>,
B: PartialOrd<B>,
impl<U, B> PartialOrd<UInt<U, B>> for UInt<U, B> where
U: PartialOrd<U>,
B: PartialOrd<B>,
pub fn partial_cmp(&self, other: &UInt<U, B>) -> Option<Ordering>
impl<U> PartialOrd<NInt<U>> for NInt<U> where
U: PartialOrd<U> + Unsigned + NonZero,
impl<U> PartialOrd<NInt<U>> for NInt<U> where
U: PartialOrd<U> + Unsigned + NonZero,
pub fn partial_cmp(&self, other: &NInt<U>) -> Option<Ordering>
impl PartialOrd<Greater> for Greater
impl PartialOrd<Greater> for Greater
pub fn partial_cmp(&self, other: &Greater) -> Option<Ordering>
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
V: PartialOrd<V>,
A: PartialOrd<A>,
impl<V, A> PartialOrd<TArr<V, A>> for TArr<V, A> where
V: PartialOrd<V>,
A: PartialOrd<A>,
pub fn partial_cmp(&self, other: &TArr<V, A>) -> Option<Ordering>
impl PartialOrd<Equal> for Equal
impl PartialOrd<Equal> for Equal
pub fn partial_cmp(&self, other: &Equal) -> Option<Ordering>
impl<Sep, T> PartialOrd<StringWithSeparator<Sep, T>> for StringWithSeparator<Sep, T> where
T: PartialOrd<T>,
Sep: PartialOrd<Sep>,
[src]
impl<Sep, T> PartialOrd<StringWithSeparator<Sep, T>> for StringWithSeparator<Sep, T> where
T: PartialOrd<T>,
Sep: PartialOrd<Sep>,
[src]Compare two DateTimes based on their true time, ignoring time zones
Example
use chrono::prelude::*; let earlier = Utc.ymd(2015, 5, 15).and_hms(2, 0, 0).with_timezone(&FixedOffset::west(1 * 3600)); let later = Utc.ymd(2015, 5, 15).and_hms(3, 0, 0).with_timezone(&FixedOffset::west(5 * 3600)); assert_eq!(earlier.to_string(), "2015-05-15 01:00:00 -01:00"); assert_eq!(later.to_string(), "2015-05-14 22:00:00 -05:00"); assert!(later > earlier);
impl PartialOrd<ClassUnicodeRange> for ClassUnicodeRange
impl PartialOrd<ClassUnicodeRange> for ClassUnicodeRange
pub fn partial_cmp(&self, other: &ClassUnicodeRange) -> Option<Ordering>
impl PartialOrd<Utf8Range> for Utf8Range
impl PartialOrd<Utf8Range> for Utf8Range
pub fn partial_cmp(&self, other: &Utf8Range) -> Option<Ordering>
impl PartialOrd<Span> for Span
impl PartialOrd<Span> for Span
pub fn partial_cmp(&self, other: &Span) -> Option<Ordering>
impl PartialOrd<Position> for Position
impl PartialOrd<Position> for Position
pub fn partial_cmp(&self, other: &Position) -> Option<Ordering>
impl PartialOrd<Literal> for Literal
impl PartialOrd<Literal> for Literal
pub fn partial_cmp(&self, other: &Literal) -> Option<Ordering>
impl PartialOrd<Utf8Sequence> for Utf8Sequence
impl PartialOrd<Utf8Sequence> for Utf8Sequence
pub fn partial_cmp(&self, other: &Utf8Sequence) -> Option<Ordering>
impl PartialOrd<ClassBytesRange> for ClassBytesRange
impl PartialOrd<ClassBytesRange> for ClassBytesRange
pub fn partial_cmp(&self, other: &ClassBytesRange) -> Option<Ordering>
impl PartialOrd<DwCc> for DwCc
impl PartialOrd<DwCc> for DwCc
pub fn partial_cmp(&self, other: &DwCc) -> Option<Ordering>
impl PartialOrd<DwUt> for DwUt
impl PartialOrd<DwUt> for DwUt
pub fn partial_cmp(&self, other: &DwUt) -> Option<Ordering>
impl PartialOrd<DwDs> for DwDs
impl PartialOrd<DwDs> for DwDs
pub fn partial_cmp(&self, other: &DwDs) -> Option<Ordering>
impl PartialOrd<SectionId> for SectionId
impl PartialOrd<SectionId> for SectionId
pub fn partial_cmp(&self, other: &SectionId) -> Option<Ordering>
impl PartialOrd<DwAte> for DwAte
impl PartialOrd<DwAte> for DwAte
pub fn partial_cmp(&self, other: &DwAte) -> Option<Ordering>
impl PartialOrd<Register> for Register
impl PartialOrd<Register> for Register
pub fn partial_cmp(&self, other: &Register) -> Option<Ordering>
impl PartialOrd<DwLang> for DwLang
impl PartialOrd<DwLang> for DwLang
pub fn partial_cmp(&self, other: &DwLang) -> Option<Ordering>
impl PartialOrd<DwAddr> for DwAddr
impl PartialOrd<DwAddr> for DwAddr
pub fn partial_cmp(&self, other: &DwAddr) -> Option<Ordering>
impl PartialOrd<DwTag> for DwTag
impl PartialOrd<DwTag> for DwTag
pub fn partial_cmp(&self, other: &DwTag) -> Option<Ordering>
impl PartialOrd<DwOrd> for DwOrd
impl PartialOrd<DwOrd> for DwOrd
pub fn partial_cmp(&self, other: &DwOrd) -> Option<Ordering>
impl<T> PartialOrd<DebugInfoOffset<T>> for DebugInfoOffset<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<DebugInfoOffset<T>> for DebugInfoOffset<T> where
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &DebugInfoOffset<T>) -> Option<Ordering>
impl PartialOrd<DwOp> for DwOp
impl PartialOrd<DwOp> for DwOp
pub fn partial_cmp(&self, other: &DwOp) -> Option<Ordering>
impl PartialOrd<DwEnd> for DwEnd
impl PartialOrd<DwEnd> for DwEnd
pub fn partial_cmp(&self, other: &DwEnd) -> Option<Ordering>
impl PartialOrd<DwDefaulted> for DwDefaulted
impl PartialOrd<DwDefaulted> for DwDefaulted
pub fn partial_cmp(&self, other: &DwDefaulted) -> Option<Ordering>
impl PartialOrd<DwAt> for DwAt
impl PartialOrd<DwAt> for DwAt
pub fn partial_cmp(&self, other: &DwAt) -> Option<Ordering>
impl PartialOrd<DwChildren> for DwChildren
impl PartialOrd<DwChildren> for DwChildren
pub fn partial_cmp(&self, other: &DwChildren) -> Option<Ordering>
impl PartialOrd<DwForm> for DwForm
impl PartialOrd<DwForm> for DwForm
pub fn partial_cmp(&self, other: &DwForm) -> Option<Ordering>
impl PartialOrd<ColumnType> for ColumnType
impl PartialOrd<ColumnType> for ColumnType
pub fn partial_cmp(&self, other: &ColumnType) -> Option<Ordering>
impl PartialOrd<DwId> for DwId
impl PartialOrd<DwId> for DwId
pub fn partial_cmp(&self, other: &DwId) -> Option<Ordering>
impl PartialOrd<DwIdx> for DwIdx
impl PartialOrd<DwIdx> for DwIdx
pub fn partial_cmp(&self, other: &DwIdx) -> Option<Ordering>
impl PartialOrd<DwCfa> for DwCfa
impl PartialOrd<DwCfa> for DwCfa
pub fn partial_cmp(&self, other: &DwCfa) -> Option<Ordering>
impl<T> PartialOrd<UnitSectionOffset<T>> for UnitSectionOffset<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<UnitSectionOffset<T>> for UnitSectionOffset<T> where
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &UnitSectionOffset<T>) -> Option<Ordering>
impl<T> PartialOrd<UnitOffset<T>> for UnitOffset<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<UnitOffset<T>> for UnitOffset<T> where
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &UnitOffset<T>) -> Option<Ordering>
impl PartialOrd<DwLns> for DwLns
impl PartialOrd<DwLns> for DwLns
pub fn partial_cmp(&self, other: &DwLns) -> Option<Ordering>
impl PartialOrd<DwVis> for DwVis
impl PartialOrd<DwVis> for DwVis
pub fn partial_cmp(&self, other: &DwVis) -> Option<Ordering>
impl PartialOrd<DwEhPe> for DwEhPe
impl PartialOrd<DwEhPe> for DwEhPe
pub fn partial_cmp(&self, other: &DwEhPe) -> Option<Ordering>
impl<T> PartialOrd<DebugTypesOffset<T>> for DebugTypesOffset<T> where
T: PartialOrd<T>,
impl<T> PartialOrd<DebugTypesOffset<T>> for DebugTypesOffset<T> where
T: PartialOrd<T>,
pub fn partial_cmp(&self, other: &DebugTypesOffset<T>) -> Option<Ordering>
impl PartialOrd<DwLle> for DwLle
impl PartialOrd<DwLle> for DwLle
pub fn partial_cmp(&self, other: &DwLle) -> Option<Ordering>
impl PartialOrd<ArangeEntry> for ArangeEntry
impl PartialOrd<ArangeEntry> for ArangeEntry
pub fn partial_cmp(&self, other: &ArangeEntry) -> Option<Ordering>
impl PartialOrd<DwRle> for DwRle
impl PartialOrd<DwRle> for DwRle
pub fn partial_cmp(&self, other: &DwRle) -> Option<Ordering>
impl PartialOrd<DwLne> for DwLne
impl PartialOrd<DwLne> for DwLne
pub fn partial_cmp(&self, other: &DwLne) -> Option<Ordering>
impl PartialOrd<DwDsc> for DwDsc
impl PartialOrd<DwDsc> for DwDsc
pub fn partial_cmp(&self, other: &DwDsc) -> Option<Ordering>
impl PartialOrd<DwAccess> for DwAccess
impl PartialOrd<DwAccess> for DwAccess
pub fn partial_cmp(&self, other: &DwAccess) -> Option<Ordering>
impl PartialOrd<DwLnct> for DwLnct
impl PartialOrd<DwLnct> for DwLnct
pub fn partial_cmp(&self, other: &DwLnct) -> Option<Ordering>
impl PartialOrd<DwMacro> for DwMacro
impl PartialOrd<DwMacro> for DwMacro
pub fn partial_cmp(&self, other: &DwMacro) -> Option<Ordering>
impl PartialOrd<DwInl> for DwInl
impl PartialOrd<DwInl> for DwInl
pub fn partial_cmp(&self, other: &DwInl) -> Option<Ordering>
impl PartialOrd<DwVirtuality> for DwVirtuality
impl PartialOrd<DwVirtuality> for DwVirtuality
pub fn partial_cmp(&self, other: &DwVirtuality) -> Option<Ordering>
impl<E> PartialOrd<U64Bytes<E>> for U64Bytes<E> where
E: PartialOrd<E> + Endian,
impl<E> PartialOrd<U64Bytes<E>> for U64Bytes<E> where
E: PartialOrd<E> + Endian,
pub fn partial_cmp(&self, other: &U64Bytes<E>) -> Option<Ordering>
impl<E> PartialOrd<I32Bytes<E>> for I32Bytes<E> where
E: PartialOrd<E> + Endian,
impl<E> PartialOrd<I32Bytes<E>> for I32Bytes<E> where
E: PartialOrd<E> + Endian,
pub fn partial_cmp(&self, other: &I32Bytes<E>) -> Option<Ordering>
impl<E> PartialOrd<U16Bytes<E>> for U16Bytes<E> where
E: PartialOrd<E> + Endian,
impl<E> PartialOrd<U16Bytes<E>> for U16Bytes<E> where
E: PartialOrd<E> + Endian,
pub fn partial_cmp(&self, other: &U16Bytes<E>) -> Option<Ordering>
impl<E> PartialOrd<I64Bytes<E>> for I64Bytes<E> where
E: PartialOrd<E> + Endian,
impl<E> PartialOrd<I64Bytes<E>> for I64Bytes<E> where
E: PartialOrd<E> + Endian,
pub fn partial_cmp(&self, other: &I64Bytes<E>) -> Option<Ordering>
impl<E> PartialOrd<U32Bytes<E>> for U32Bytes<E> where
E: PartialOrd<E> + Endian,
impl<E> PartialOrd<U32Bytes<E>> for U32Bytes<E> where
E: PartialOrd<E> + Endian,
pub fn partial_cmp(&self, other: &U32Bytes<E>) -> Option<Ordering>
impl<E> PartialOrd<I16Bytes<E>> for I16Bytes<E> where
E: PartialOrd<E> + Endian,
impl<E> PartialOrd<I16Bytes<E>> for I16Bytes<E> where
E: PartialOrd<E> + Endian,
pub fn partial_cmp(&self, other: &I16Bytes<E>) -> Option<Ordering>
impl PartialOrd<RecursiveMode> for RecursiveMode
impl PartialOrd<RecursiveMode> for RecursiveMode
pub fn partial_cmp(&self, other: &RecursiveMode) -> Option<Ordering>
impl PartialOrd<Op> for Op
impl PartialOrd<Op> for Op
pub fn partial_cmp(&self, other: &Op) -> Option<Ordering>
impl PartialOrd<FileTime> for FileTime
impl PartialOrd<FileTime> for FileTime
pub fn partial_cmp(&self, other: &FileTime) -> Option<Ordering>
impl PartialOrd<WatchMask> for WatchMask
impl PartialOrd<WatchMask> for WatchMask
pub fn partial_cmp(&self, other: &WatchMask) -> Option<Ordering>
impl PartialOrd<EventMask> for EventMask
impl PartialOrd<EventMask> for EventMask
pub fn partial_cmp(&self, other: &EventMask) -> Option<Ordering>
impl<A> PartialOrd<SmallVec<A>> for SmallVec<A> where
A: Array,
<A as Array>::Item: PartialOrd<<A as Array>::Item>,
impl<A> PartialOrd<SmallVec<A>> for SmallVec<A> where
A: Array,
<A as Array>::Item: PartialOrd<<A as Array>::Item>,
pub fn partial_cmp(&self, other: &SmallVec<A>) -> Option<Ordering>
impl PartialOrd<Level> for Level
impl PartialOrd<Level> for Level
pub fn partial_cmp(&self, other: &Level) -> Option<Ordering>
impl<'s, T> PartialOrd<SliceVec<'s, T>> for SliceVec<'s, T> where
T: PartialOrd<T>,
impl<'s, T> PartialOrd<SliceVec<'s, T>> for SliceVec<'s, T> where
T: PartialOrd<T>,
#[must_use]pub fn partial_cmp(&self, other: &SliceVec<'s, T>) -> Option<Ordering>
impl<A> PartialOrd<ArrayVec<A>> for ArrayVec<A> where
A: Array,
<A as Array>::Item: PartialOrd<<A as Array>::Item>,
impl<A> PartialOrd<ArrayVec<A>> for ArrayVec<A> where
A: Array,
<A as Array>::Item: PartialOrd<<A as Array>::Item>,
#[must_use]pub fn partial_cmp(&self, other: &ArrayVec<A>) -> Option<Ordering>
impl<A> PartialOrd<TinyVec<A>> for TinyVec<A> where
A: Array,
<A as Array>::Item: PartialOrd<<A as Array>::Item>,
impl<A> PartialOrd<TinyVec<A>> for TinyVec<A> where
A: Array,
<A as Array>::Item: PartialOrd<<A as Array>::Item>,
#[must_use]pub fn partial_cmp(&self, other: &TinyVec<A>) -> Option<Ordering>
Compares the logical preconditions.
a < b
if the normal form a
has less preconditions than b
.
impl PartialOrd<Transformations> for Transformations
impl PartialOrd<Transformations> for Transformations
pub fn partial_cmp(&self, other: &Transformations) -> Option<Ordering>
impl PartialOrd<MatchingType> for MatchingType
impl PartialOrd<MatchingType> for MatchingType
pub fn partial_cmp(&self, other: &MatchingType) -> Option<Ordering>
impl PartialOrd<Compression> for Compression
impl PartialOrd<Compression> for Compression
pub fn partial_cmp(&self, other: &Compression) -> Option<Ordering>
impl PartialOrd<UnicodeVersion> for UnicodeVersion
impl PartialOrd<UnicodeVersion> for UnicodeVersion
pub fn partial_cmp(&self, other: &UnicodeVersion) -> Option<Ordering>
impl PartialOrd<FileType> for FileType
impl PartialOrd<FileType> for FileType
pub fn partial_cmp(&self, other: &FileType) -> Option<Ordering>
impl<'a, 'b> PartialOrd<&'a BStr> for Vec<u8, Global>
impl<'a, 'b> PartialOrd<&'a BStr> for Vec<u8, Global>
pub fn partial_cmp(&self, other: &&'a BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BStr> for &'a [u8]
impl<'a, 'b> PartialOrd<BStr> for &'a [u8]
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BString> for &'a str
impl<'a, 'b> PartialOrd<BString> for &'a str
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BStr> for str
impl<'a, 'b> PartialOrd<BStr> for str
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BString> for String
impl<'a, 'b> PartialOrd<BString> for String
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BString> for &'a BStr
impl<'a, 'b> PartialOrd<BString> for &'a BStr
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BString> for BStr
impl<'a, 'b> PartialOrd<BString> for BStr
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl PartialOrd<BStr> for BStr
impl PartialOrd<BStr> for BStr
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<Vec<u8, Global>> for &'a BStr
impl<'a, 'b> PartialOrd<Vec<u8, Global>> for &'a BStr
impl<'a, 'b> PartialOrd<BString> for Vec<u8, Global>
impl<'a, 'b> PartialOrd<BString> for Vec<u8, Global>
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<&'a str> for BStr
impl<'a, 'b> PartialOrd<&'a str> for BStr
pub fn partial_cmp(&self, other: &&'a str) -> Option<Ordering>
impl<'a, 'b> PartialOrd<&'a str> for BString
impl<'a, 'b> PartialOrd<&'a str> for BString
pub fn partial_cmp(&self, other: &&'a str) -> Option<Ordering>
impl<'a, 'b> PartialOrd<Vec<u8, Global>> for BStr
impl<'a, 'b> PartialOrd<Vec<u8, Global>> for BStr
impl<'a, 'b> PartialOrd<&'a BStr> for BString
impl<'a, 'b> PartialOrd<&'a BStr> for BString
pub fn partial_cmp(&self, other: &&'a BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BStr> for &'a str
impl<'a, 'b> PartialOrd<BStr> for &'a str
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<Vec<u8, Global>> for BString
impl<'a, 'b> PartialOrd<Vec<u8, Global>> for BString
impl<'a, 'b> PartialOrd<str> for BStr
impl<'a, 'b> PartialOrd<str> for BStr
pub fn partial_cmp(&self, other: &str) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BString> for str
impl<'a, 'b> PartialOrd<BString> for str
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<String> for BString
impl<'a, 'b> PartialOrd<String> for BString
pub fn partial_cmp(&self, other: &String) -> Option<Ordering>
impl<'a, 'b> PartialOrd<[u8]> for BStr
impl<'a, 'b> PartialOrd<[u8]> for BStr
impl<'a, 'b> PartialOrd<String> for &'a BStr
impl<'a, 'b> PartialOrd<String> for &'a BStr
pub fn partial_cmp(&self, other: &String) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BStr> for BString
impl<'a, 'b> PartialOrd<BStr> for BString
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BStr> for [u8]
impl<'a, 'b> PartialOrd<BStr> for [u8]
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<[u8]> for BString
impl<'a, 'b> PartialOrd<[u8]> for BString
impl<'a, 'b> PartialOrd<BString> for &'a [u8]
impl<'a, 'b> PartialOrd<BString> for &'a [u8]
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BStr> for String
impl<'a, 'b> PartialOrd<BStr> for String
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl PartialOrd<BString> for BString
impl PartialOrd<BString> for BString
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<String> for BStr
impl<'a, 'b> PartialOrd<String> for BStr
pub fn partial_cmp(&self, other: &String) -> Option<Ordering>
impl<'a, 'b> PartialOrd<&'a BStr> for String
impl<'a, 'b> PartialOrd<&'a BStr> for String
pub fn partial_cmp(&self, other: &&'a BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<&'a [u8]> for BStr
impl<'a, 'b> PartialOrd<&'a [u8]> for BStr
impl<'a, 'b> PartialOrd<BStr> for Vec<u8, Global>
impl<'a, 'b> PartialOrd<BStr> for Vec<u8, Global>
pub fn partial_cmp(&self, other: &BStr) -> Option<Ordering>
impl<'a, 'b> PartialOrd<BString> for [u8]
impl<'a, 'b> PartialOrd<BString> for [u8]
pub fn partial_cmp(&self, other: &BString) -> Option<Ordering>
impl<'a, 'b> PartialOrd<str> for BString
impl<'a, 'b> PartialOrd<str> for BString
pub fn partial_cmp(&self, other: &str) -> Option<Ordering>
impl<'a, 'b> PartialOrd<&'a [u8]> for BString
impl<'a, 'b> PartialOrd<&'a [u8]> for BString
URLs compare like their serialization.
impl PartialOrd<UnicodeVersion> for UnicodeVersion
impl PartialOrd<UnicodeVersion> for UnicodeVersion
pub fn partial_cmp(&self, other: &UnicodeVersion) -> Option<Ordering>
Implementors
URLs compare like their serialization.
impl<I, T> PartialOrd<IndexSlice<I, [T]>> for IndexSlice<I, [T]> where
T: PartialOrd<T>,
I: Idx,
[src]
impl<I, T> PartialOrd<IndexSlice<I, [T]>> for IndexSlice<I, [T]> where
T: PartialOrd<T>,
I: Idx,
[src]impl<I, T> PartialOrd<IndexVec<I, T>> for IndexVec<I, T> where
T: PartialOrd<T>,
I: PartialOrd<I> + Idx,
[src]
impl<I, T> PartialOrd<IndexVec<I, T>> for IndexVec<I, T> where
T: PartialOrd<T>,
I: PartialOrd<I> + Idx,
[src]impl<K, V> PartialOrd<BTreeMap<K, V>> for BTreeMap<K, V> where
K: PartialOrd<K>,
V: PartialOrd<V>,
[src]
impl<K, V> PartialOrd<BTreeMap<K, V>> for BTreeMap<K, V> where
K: PartialOrd<K>,
V: PartialOrd<V>,
[src]impl<L, R> PartialOrd<Either<L, R>> for Either<L, R> where
R: PartialOrd<R>,
L: PartialOrd<L>,
[src]
impl<L, R> PartialOrd<Either<L, R>> for Either<L, R> where
R: PartialOrd<R>,
L: PartialOrd<L>,
[src]impl<T> PartialOrd<ManuallyDrop<T>> for ManuallyDrop<T> where
T: PartialOrd<T> + ?Sized,
1.20.0[src]
impl<T> PartialOrd<ManuallyDrop<T>> for ManuallyDrop<T> where
T: PartialOrd<T> + ?Sized,
1.20.0[src]Partial comparison for two Arc
s.
The two are compared by calling partial_cmp()
on their inner values.
Examples
use std::sync::Arc; use std::cmp::Ordering; let five = Arc::new(5); assert_eq!(Some(Ordering::Less), five.partial_cmp(&Arc::new(6)));
Less-than comparison for two Arc
s.
The two are compared by calling <
on their inner values.
Examples
use std::sync::Arc; let five = Arc::new(5); assert!(five < Arc::new(6));
‘Less than or equal to’ comparison for two Arc
s.
The two are compared by calling <=
on their inner values.
Examples
use std::sync::Arc; let five = Arc::new(5); assert!(five <= Arc::new(5));
Greater-than comparison for two Arc
s.
The two are compared by calling >
on their inner values.
Examples
use std::sync::Arc; let five = Arc::new(5); assert!(five > Arc::new(4));
impl<T> PartialOrd<IsHtmlFormatted<T>> for IsHtmlFormatted<T> where
T: PartialOrd<T> + Display,
[src]
impl<T> PartialOrd<IsHtmlFormatted<T>> for IsHtmlFormatted<T> where
T: PartialOrd<T> + Display,
[src]impl<T> PartialOrd<T> for Void
impl<T> PartialOrd<T> for Void
pub fn partial_cmp(&self, &T) -> Option<Ordering>
impl<T, const CAP: usize> PartialOrd<ArrayVec<T, CAP>> for otter::prelude::ArrayVec<T, CAP> where
T: PartialOrd<T>,
[src]
impl<T, const CAP: usize> PartialOrd<ArrayVec<T, CAP>> for otter::prelude::ArrayVec<T, CAP> where
T: PartialOrd<T>,
[src]