pub struct DiscriminantOrd<T>(<T as DiscriminantKind>::Discriminant);🔬This is a nightly-only experimental API. (
discriminant_ord #165438)Expand description
Implementation detail for Discriminant::ord.
Tuple Fields§
§0: <T as DiscriminantKind>::Discriminant🔬This is a nightly-only experimental API. (
discriminant_ord #165438)Trait Implementations§
Source§impl<T> Clone for DiscriminantOrd<T>
impl<T> Clone for DiscriminantOrd<T>
Source§fn clone(&self) -> DiscriminantOrd<T>
fn clone(&self) -> DiscriminantOrd<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<T> Copy for DiscriminantOrd<T>
Source§impl<T> Debug for DiscriminantOrd<T>
impl<T> Debug for DiscriminantOrd<T>
Source§impl<T> Eq for DiscriminantOrd<T>
impl<T> Eq for DiscriminantOrd<T>
1.0.0 (const: unstable) · Source§#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
#[doc(hidden)]fn assert_receiver_is_total_eq(&self)
👎Deprecated since 1.95.0:
implementation detail of #[derive(Eq)]
Source§#[doc(hidden)]fn assert_fields_are_eq(&self)
#[doc(hidden)]fn assert_fields_are_eq(&self)
🔬This is a nightly-only experimental API. (
derive_eq_internals)Source§impl<T> Hash for DiscriminantOrd<T>
impl<T> Hash for DiscriminantOrd<T>
Source§impl<T> Ord for DiscriminantOrd<T>
impl<T> Ord for DiscriminantOrd<T>
Source§fn cmp(&self, other: &DiscriminantOrd<T>) -> Ordering
fn cmp(&self, other: &DiscriminantOrd<T>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<T> PartialEq for DiscriminantOrd<T>
impl<T> PartialEq for DiscriminantOrd<T>
Source§impl<T> PartialOrd for DiscriminantOrd<T>
impl<T> PartialOrd for DiscriminantOrd<T>
Source§fn partial_cmp(&self, other: &DiscriminantOrd<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &DiscriminantOrd<T>) -> Option<Ordering>
Source§#[doc(hidden)]fn __chaining_less(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_less(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods)If
self == other, returns Continue(()).
Otherwise, returns Break(self < other), or equivalently Break(self <= other).
The only difference when chaining < and <= is how an equality result is
interpreted at the end of the chain. Read moreSource§#[doc(hidden)]fn __chaining_greater(&self, other: &Rhs) -> ControlFlow<bool>
#[doc(hidden)]fn __chaining_greater(&self, other: &Rhs) -> ControlFlow<bool>
🔬This is a nightly-only experimental API. (
partial_ord_chaining_methods)Same as
__chaining_less, but for >/>= instead of </<=.impl<T> TrivialClone for DiscriminantOrd<T>
Auto Trait Implementations§
impl<T> Forget for DiscriminantOrd<T>
impl<T> Freeze for DiscriminantOrd<T>
impl<T> Move for DiscriminantOrd<T>
impl<T> RefUnwindSafe for DiscriminantOrd<T>
impl<T> Send for DiscriminantOrd<T>
impl<T> Sync for DiscriminantOrd<T>
impl<T> Unpin for DiscriminantOrd<T>
impl<T> UnsafeUnpin for DiscriminantOrd<T>
impl<T> UnwindSafe for DiscriminantOrd<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Printable for T
Source§impl<T> SizeHint for Twhere
T: ?Sized,
impl<T> SizeHint for Twhere
T: ?Sized,
Source§default fn lower_bound(&self) -> usize
default fn lower_bound(&self) -> usize
🔬This is a nightly-only experimental API. (
core_io_internals)Returns a lower bound on the number of elements this container-like item
contains.
For example, an array
[u8; 12] could return any value between 0 and
12 inclusively as a correct implementation. Read moreSource§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)]const SIZE: usize
#[doc(hidden)]const SIZE: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGN: usize
#[doc(hidden)]const ALIGN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const ALIGNMENT: Alignment
#[doc(hidden)]const ALIGNMENT: Alignment
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const IS_ZST: bool
#[doc(hidden)]const IS_ZST: bool
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const LAYOUT: Layout
#[doc(hidden)]const LAYOUT: Layout
🔬This is a nightly-only experimental API. (
sized_type_properties)Source§#[doc(hidden)]const MAX_SLICE_LEN: usize
#[doc(hidden)]const MAX_SLICE_LEN: usize
🔬This is a nightly-only experimental API. (
sized_type_properties)The largest safe length for a
[Self]. Read more