Struct konst::cmp::CmpWrapper
source · pub struct CmpWrapper<T>(pub T);
Expand description
A wrapper type for std types, which defines const_eq
and const_cmp
methods for them.
This is what coerce_to_cmp
and the comparison macros convert standard library types into.
§Example
use konst::{
cmp::CmpWrapper,
coerce_to_cmp,
};
use std::cmp::Ordering;
{
// The `CmpWrapper<u32>` type annotation is just for the reader
let foo: CmpWrapper<u32> = coerce_to_cmp!(10u32);
assert!( foo.const_eq(&10));
assert!(!foo.const_eq(&20));
assert_eq!(foo.const_cmp(&5), Ordering::Greater);
assert_eq!(foo.const_cmp(&10), Ordering::Equal);
assert_eq!(foo.const_cmp(&15), Ordering::Less);
}
{
let bar = CmpWrapper(Ordering::Equal);
assert!( bar.const_eq(&Ordering::Equal));
assert!(!bar.const_eq(&Ordering::Less));
assert_eq!(bar.const_cmp(&Ordering::Less), Ordering::Greater);
assert_eq!(bar.const_cmp(&Ordering::Equal), Ordering::Equal);
assert_eq!(bar.const_cmp(&Ordering::Greater), Ordering::Less);
}
Tuple Fields§
§0: T
Implementations§
source§impl<'a, T> CmpWrapper<&'a [T]>
impl<'a, T> CmpWrapper<&'a [T]>
source§impl CmpWrapper<i8>
impl CmpWrapper<i8>
source§impl CmpWrapper<u8>
impl CmpWrapper<u8>
source§impl CmpWrapper<i16>
impl CmpWrapper<i16>
source§impl CmpWrapper<u16>
impl CmpWrapper<u16>
source§impl CmpWrapper<i32>
impl CmpWrapper<i32>
source§impl CmpWrapper<u32>
impl CmpWrapper<u32>
source§impl CmpWrapper<i64>
impl CmpWrapper<i64>
source§impl CmpWrapper<u64>
impl CmpWrapper<u64>
source§impl CmpWrapper<i128>
impl CmpWrapper<i128>
source§impl CmpWrapper<u128>
impl CmpWrapper<u128>
source§impl CmpWrapper<isize>
impl CmpWrapper<isize>
source§impl CmpWrapper<usize>
impl CmpWrapper<usize>
source§impl CmpWrapper<bool>
impl CmpWrapper<bool>
source§impl CmpWrapper<char>
impl CmpWrapper<char>
source§impl CmpWrapper<u8>
impl CmpWrapper<u8>
source§impl CmpWrapper<u16>
impl CmpWrapper<u16>
source§impl CmpWrapper<u32>
impl CmpWrapper<u32>
source§impl CmpWrapper<u64>
impl CmpWrapper<u64>
source§impl CmpWrapper<u128>
impl CmpWrapper<u128>
source§impl CmpWrapper<usize>
impl CmpWrapper<usize>
source§impl CmpWrapper<i8>
impl CmpWrapper<i8>
source§impl CmpWrapper<i16>
impl CmpWrapper<i16>
source§impl CmpWrapper<i32>
impl CmpWrapper<i32>
source§impl CmpWrapper<i64>
impl CmpWrapper<i64>
source§impl CmpWrapper<i128>
impl CmpWrapper<i128>
source§impl CmpWrapper<isize>
impl CmpWrapper<isize>
source§impl CmpWrapper<bool>
impl CmpWrapper<bool>
source§impl CmpWrapper<char>
impl CmpWrapper<char>
source§impl CmpWrapper<Option<u8>>
impl CmpWrapper<Option<u8>>
source§impl CmpWrapper<Option<u8>>
impl CmpWrapper<Option<u8>>
source§impl CmpWrapper<Option<i8>>
impl CmpWrapper<Option<i8>>
source§impl CmpWrapper<Option<i8>>
impl CmpWrapper<Option<i8>>
source§impl CmpWrapper<Option<u16>>
impl CmpWrapper<Option<u16>>
source§impl CmpWrapper<Option<u16>>
impl CmpWrapper<Option<u16>>
source§impl CmpWrapper<Option<i16>>
impl CmpWrapper<Option<i16>>
source§impl CmpWrapper<Option<i16>>
impl CmpWrapper<Option<i16>>
source§impl CmpWrapper<Option<u32>>
impl CmpWrapper<Option<u32>>
source§impl CmpWrapper<Option<u32>>
impl CmpWrapper<Option<u32>>
source§impl CmpWrapper<Option<i32>>
impl CmpWrapper<Option<i32>>
source§impl CmpWrapper<Option<i32>>
impl CmpWrapper<Option<i32>>
source§impl CmpWrapper<Option<u64>>
impl CmpWrapper<Option<u64>>
source§impl CmpWrapper<Option<u64>>
impl CmpWrapper<Option<u64>>
source§impl CmpWrapper<Option<i64>>
impl CmpWrapper<Option<i64>>
source§impl CmpWrapper<Option<i64>>
impl CmpWrapper<Option<i64>>
source§impl CmpWrapper<Option<u128>>
impl CmpWrapper<Option<u128>>
source§impl CmpWrapper<Option<u128>>
impl CmpWrapper<Option<u128>>
source§impl CmpWrapper<Option<i128>>
impl CmpWrapper<Option<i128>>
source§impl CmpWrapper<Option<i128>>
impl CmpWrapper<Option<i128>>
source§impl CmpWrapper<Option<usize>>
impl CmpWrapper<Option<usize>>
source§impl CmpWrapper<Option<usize>>
impl CmpWrapper<Option<usize>>
source§impl CmpWrapper<Option<isize>>
impl CmpWrapper<Option<isize>>
source§impl CmpWrapper<Option<isize>>
impl CmpWrapper<Option<isize>>
source§impl CmpWrapper<Option<bool>>
impl CmpWrapper<Option<bool>>
source§impl CmpWrapper<Option<bool>>
impl CmpWrapper<Option<bool>>
source§impl CmpWrapper<Option<char>>
impl CmpWrapper<Option<char>>
source§impl CmpWrapper<Option<char>>
impl CmpWrapper<Option<char>>
source§impl CmpWrapper<Range<u8>>
impl CmpWrapper<Range<u8>>
source§impl<'a> CmpWrapper<&'a Range<u8>>
impl<'a> CmpWrapper<&'a Range<u8>>
source§impl CmpWrapper<Range<u16>>
impl CmpWrapper<Range<u16>>
source§impl<'a> CmpWrapper<&'a Range<u16>>
impl<'a> CmpWrapper<&'a Range<u16>>
source§impl CmpWrapper<Range<u32>>
impl CmpWrapper<Range<u32>>
source§impl<'a> CmpWrapper<&'a Range<u32>>
impl<'a> CmpWrapper<&'a Range<u32>>
source§impl CmpWrapper<Range<u64>>
impl CmpWrapper<Range<u64>>
source§impl<'a> CmpWrapper<&'a Range<u64>>
impl<'a> CmpWrapper<&'a Range<u64>>
source§impl CmpWrapper<Range<u128>>
impl CmpWrapper<Range<u128>>
source§impl<'a> CmpWrapper<&'a Range<u128>>
impl<'a> CmpWrapper<&'a Range<u128>>
source§impl CmpWrapper<Range<usize>>
impl CmpWrapper<Range<usize>>
source§impl<'a> CmpWrapper<&'a Range<usize>>
impl<'a> CmpWrapper<&'a Range<usize>>
source§impl CmpWrapper<Range<char>>
impl CmpWrapper<Range<char>>
source§impl<'a> CmpWrapper<&'a Range<char>>
impl<'a> CmpWrapper<&'a Range<char>>
source§impl CmpWrapper<RangeInclusive<u8>>
impl CmpWrapper<RangeInclusive<u8>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<u8>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<u8>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<RangeInclusive<u16>>
impl CmpWrapper<RangeInclusive<u16>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<u16>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<u16>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<RangeInclusive<u32>>
impl CmpWrapper<RangeInclusive<u32>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<u32>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<u32>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<RangeInclusive<u64>>
impl CmpWrapper<RangeInclusive<u64>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<u64>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<u64>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<RangeInclusive<u128>>
impl CmpWrapper<RangeInclusive<u128>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<u128>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<u128>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<RangeInclusive<usize>>
impl CmpWrapper<RangeInclusive<usize>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<usize>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<usize>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<RangeInclusive<char>>
impl CmpWrapper<RangeInclusive<char>>
sourcepub const fn const_eq(&self, other: &RangeInclusive<char>) -> bool
pub const fn const_eq(&self, other: &RangeInclusive<char>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroU8>
impl CmpWrapper<NonZeroU8>
source§impl CmpWrapper<NonZeroU8>
impl CmpWrapper<NonZeroU8>
source§impl CmpWrapper<NonZeroI8>
impl CmpWrapper<NonZeroI8>
source§impl CmpWrapper<NonZeroI8>
impl CmpWrapper<NonZeroI8>
source§impl CmpWrapper<NonZeroU16>
impl CmpWrapper<NonZeroU16>
sourcepub const fn const_eq(&self, other: &NonZeroU16) -> bool
pub const fn const_eq(&self, other: &NonZeroU16) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroU16>
impl CmpWrapper<NonZeroU16>
sourcepub const fn const_cmp(&self, other: &NonZeroU16) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroU16) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroI16>
impl CmpWrapper<NonZeroI16>
sourcepub const fn const_eq(&self, other: &NonZeroI16) -> bool
pub const fn const_eq(&self, other: &NonZeroI16) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroI16>
impl CmpWrapper<NonZeroI16>
sourcepub const fn const_cmp(&self, other: &NonZeroI16) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroI16) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroU32>
impl CmpWrapper<NonZeroU32>
sourcepub const fn const_eq(&self, other: &NonZeroU32) -> bool
pub const fn const_eq(&self, other: &NonZeroU32) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroU32>
impl CmpWrapper<NonZeroU32>
sourcepub const fn const_cmp(&self, other: &NonZeroU32) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroU32) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroI32>
impl CmpWrapper<NonZeroI32>
sourcepub const fn const_eq(&self, other: &NonZeroI32) -> bool
pub const fn const_eq(&self, other: &NonZeroI32) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroI32>
impl CmpWrapper<NonZeroI32>
sourcepub const fn const_cmp(&self, other: &NonZeroI32) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroI32) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroU64>
impl CmpWrapper<NonZeroU64>
sourcepub const fn const_eq(&self, other: &NonZeroU64) -> bool
pub const fn const_eq(&self, other: &NonZeroU64) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroU64>
impl CmpWrapper<NonZeroU64>
sourcepub const fn const_cmp(&self, other: &NonZeroU64) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroU64) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroI64>
impl CmpWrapper<NonZeroI64>
sourcepub const fn const_eq(&self, other: &NonZeroI64) -> bool
pub const fn const_eq(&self, other: &NonZeroI64) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroI64>
impl CmpWrapper<NonZeroI64>
sourcepub const fn const_cmp(&self, other: &NonZeroI64) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroI64) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroU128>
impl CmpWrapper<NonZeroU128>
sourcepub const fn const_eq(&self, other: &NonZeroU128) -> bool
pub const fn const_eq(&self, other: &NonZeroU128) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroU128>
impl CmpWrapper<NonZeroU128>
sourcepub const fn const_cmp(&self, other: &NonZeroU128) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroU128) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroI128>
impl CmpWrapper<NonZeroI128>
sourcepub const fn const_eq(&self, other: &NonZeroI128) -> bool
pub const fn const_eq(&self, other: &NonZeroI128) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroI128>
impl CmpWrapper<NonZeroI128>
sourcepub const fn const_cmp(&self, other: &NonZeroI128) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroI128) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroUsize>
impl CmpWrapper<NonZeroUsize>
sourcepub const fn const_eq(&self, other: &NonZeroUsize) -> bool
pub const fn const_eq(&self, other: &NonZeroUsize) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroUsize>
impl CmpWrapper<NonZeroUsize>
sourcepub const fn const_cmp(&self, other: &NonZeroUsize) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroUsize) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<NonZeroIsize>
impl CmpWrapper<NonZeroIsize>
sourcepub const fn const_eq(&self, other: &NonZeroIsize) -> bool
pub const fn const_eq(&self, other: &NonZeroIsize) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<NonZeroIsize>
impl CmpWrapper<NonZeroIsize>
sourcepub const fn const_cmp(&self, other: &NonZeroIsize) -> Ordering
pub const fn const_cmp(&self, other: &NonZeroIsize) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroU8>>
impl CmpWrapper<Option<NonZeroU8>>
source§impl CmpWrapper<Option<NonZeroU8>>
impl CmpWrapper<Option<NonZeroU8>>
source§impl CmpWrapper<Option<NonZeroI8>>
impl CmpWrapper<Option<NonZeroI8>>
source§impl CmpWrapper<Option<NonZeroI8>>
impl CmpWrapper<Option<NonZeroI8>>
source§impl CmpWrapper<Option<NonZeroU16>>
impl CmpWrapper<Option<NonZeroU16>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroU16>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroU16>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroU16>>
impl CmpWrapper<Option<NonZeroU16>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroU16>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroU16>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroI16>>
impl CmpWrapper<Option<NonZeroI16>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroI16>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroI16>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroI16>>
impl CmpWrapper<Option<NonZeroI16>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroI16>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroI16>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroU32>>
impl CmpWrapper<Option<NonZeroU32>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroU32>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroU32>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroU32>>
impl CmpWrapper<Option<NonZeroU32>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroU32>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroU32>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroI32>>
impl CmpWrapper<Option<NonZeroI32>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroI32>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroI32>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroI32>>
impl CmpWrapper<Option<NonZeroI32>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroI32>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroI32>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroU64>>
impl CmpWrapper<Option<NonZeroU64>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroU64>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroU64>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroU64>>
impl CmpWrapper<Option<NonZeroU64>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroU64>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroU64>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroI64>>
impl CmpWrapper<Option<NonZeroI64>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroI64>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroI64>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroI64>>
impl CmpWrapper<Option<NonZeroI64>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroI64>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroI64>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroU128>>
impl CmpWrapper<Option<NonZeroU128>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroU128>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroU128>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroU128>>
impl CmpWrapper<Option<NonZeroU128>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroU128>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroU128>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroI128>>
impl CmpWrapper<Option<NonZeroI128>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroI128>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroI128>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroI128>>
impl CmpWrapper<Option<NonZeroI128>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroI128>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroI128>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroUsize>>
impl CmpWrapper<Option<NonZeroUsize>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroUsize>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroUsize>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroUsize>>
impl CmpWrapper<Option<NonZeroUsize>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroUsize>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroUsize>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Option<NonZeroIsize>>
impl CmpWrapper<Option<NonZeroIsize>>
sourcepub const fn const_eq(&self, other: &Option<NonZeroIsize>) -> bool
pub const fn const_eq(&self, other: &Option<NonZeroIsize>) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<Option<NonZeroIsize>>
impl CmpWrapper<Option<NonZeroIsize>>
sourcepub const fn const_cmp(&self, other: &Option<NonZeroIsize>) -> Ordering
pub const fn const_cmp(&self, other: &Option<NonZeroIsize>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<Ordering>
impl CmpWrapper<Ordering>
source§impl CmpWrapper<Ordering>
impl CmpWrapper<Ordering>
source§impl CmpWrapper<Option<Ordering>>
impl CmpWrapper<Option<Ordering>>
source§impl CmpWrapper<Option<Ordering>>
impl CmpWrapper<Option<Ordering>>
source§impl<T> CmpWrapper<PhantomData<T>>
impl<T> CmpWrapper<PhantomData<T>>
sourcepub const fn const_eq(&self, other: &PhantomData<T>) -> bool
pub const fn const_eq(&self, other: &PhantomData<T>) -> bool
Compares self
and other
for equality.
source§impl<T> CmpWrapper<PhantomData<T>>
impl<T> CmpWrapper<PhantomData<T>>
sourcepub const fn const_cmp(&self, other: &PhantomData<T>) -> Ordering
pub const fn const_cmp(&self, other: &PhantomData<T>) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<PhantomPinned>
impl CmpWrapper<PhantomPinned>
sourcepub const fn const_eq(&self, other: &PhantomPinned) -> bool
pub const fn const_eq(&self, other: &PhantomPinned) -> bool
Compares self
and other
for equality.
source§impl CmpWrapper<PhantomPinned>
impl CmpWrapper<PhantomPinned>
sourcepub const fn const_cmp(&self, other: &PhantomPinned) -> Ordering
pub const fn const_cmp(&self, other: &PhantomPinned) -> Ordering
Compares self
and other
for ordering.
source§impl CmpWrapper<&[u16]>
impl CmpWrapper<&[u16]>
source§impl<'a> CmpWrapper<&[u16]>
impl<'a> CmpWrapper<&[u16]>
source§impl CmpWrapper<&[u32]>
impl CmpWrapper<&[u32]>
source§impl<'a> CmpWrapper<&[u32]>
impl<'a> CmpWrapper<&[u32]>
source§impl CmpWrapper<&[u64]>
impl CmpWrapper<&[u64]>
source§impl<'a> CmpWrapper<&[u64]>
impl<'a> CmpWrapper<&[u64]>
source§impl CmpWrapper<&[u128]>
impl CmpWrapper<&[u128]>
source§impl<'a> CmpWrapper<&[u128]>
impl<'a> CmpWrapper<&[u128]>
source§impl CmpWrapper<&[usize]>
impl CmpWrapper<&[usize]>
source§impl<'a> CmpWrapper<&[usize]>
impl<'a> CmpWrapper<&[usize]>
source§impl CmpWrapper<&[i8]>
impl CmpWrapper<&[i8]>
source§impl<'a> CmpWrapper<&[i8]>
impl<'a> CmpWrapper<&[i8]>
source§impl CmpWrapper<&[i16]>
impl CmpWrapper<&[i16]>
source§impl<'a> CmpWrapper<&[i16]>
impl<'a> CmpWrapper<&[i16]>
source§impl CmpWrapper<&[i32]>
impl CmpWrapper<&[i32]>
source§impl<'a> CmpWrapper<&[i32]>
impl<'a> CmpWrapper<&[i32]>
source§impl CmpWrapper<&[i64]>
impl CmpWrapper<&[i64]>
source§impl<'a> CmpWrapper<&[i64]>
impl<'a> CmpWrapper<&[i64]>
source§impl CmpWrapper<&[i128]>
impl CmpWrapper<&[i128]>
source§impl<'a> CmpWrapper<&[i128]>
impl<'a> CmpWrapper<&[i128]>
source§impl CmpWrapper<&[isize]>
impl CmpWrapper<&[isize]>
source§impl<'a> CmpWrapper<&[isize]>
impl<'a> CmpWrapper<&[isize]>
source§impl CmpWrapper<&[bool]>
impl CmpWrapper<&[bool]>
source§impl<'a> CmpWrapper<&[bool]>
impl<'a> CmpWrapper<&[bool]>
source§impl CmpWrapper<&[char]>
impl CmpWrapper<&[char]>
source§impl<'a> CmpWrapper<&[char]>
impl<'a> CmpWrapper<&[char]>
source§impl CmpWrapper<&[&str]>
impl CmpWrapper<&[&str]>
source§impl CmpWrapper<&[&str]>
impl CmpWrapper<&[&str]>
source§impl CmpWrapper<&[&[u8]]>
impl CmpWrapper<&[&[u8]]>
source§impl CmpWrapper<&[&[u8]]>
impl CmpWrapper<&[&[u8]]>
source§impl<'a> CmpWrapper<Option<&'a [u16]>>
impl<'a> CmpWrapper<Option<&'a [u16]>>
source§impl<'a> CmpWrapper<Option<&'a [u16]>>
impl<'a> CmpWrapper<Option<&'a [u16]>>
source§impl<'a> CmpWrapper<Option<&'a [u32]>>
impl<'a> CmpWrapper<Option<&'a [u32]>>
source§impl<'a> CmpWrapper<Option<&'a [u32]>>
impl<'a> CmpWrapper<Option<&'a [u32]>>
source§impl<'a> CmpWrapper<Option<&'a [u64]>>
impl<'a> CmpWrapper<Option<&'a [u64]>>
source§impl<'a> CmpWrapper<Option<&'a [u64]>>
impl<'a> CmpWrapper<Option<&'a [u64]>>
source§impl<'a> CmpWrapper<Option<&'a [u128]>>
impl<'a> CmpWrapper<Option<&'a [u128]>>
source§impl<'a> CmpWrapper<Option<&'a [u128]>>
impl<'a> CmpWrapper<Option<&'a [u128]>>
source§impl<'a> CmpWrapper<Option<&'a [usize]>>
impl<'a> CmpWrapper<Option<&'a [usize]>>
source§impl<'a> CmpWrapper<Option<&'a [usize]>>
impl<'a> CmpWrapper<Option<&'a [usize]>>
source§impl<'a> CmpWrapper<Option<&'a [i8]>>
impl<'a> CmpWrapper<Option<&'a [i8]>>
source§impl<'a> CmpWrapper<Option<&'a [i8]>>
impl<'a> CmpWrapper<Option<&'a [i8]>>
source§impl<'a> CmpWrapper<Option<&'a [i16]>>
impl<'a> CmpWrapper<Option<&'a [i16]>>
source§impl<'a> CmpWrapper<Option<&'a [i16]>>
impl<'a> CmpWrapper<Option<&'a [i16]>>
source§impl<'a> CmpWrapper<Option<&'a [i32]>>
impl<'a> CmpWrapper<Option<&'a [i32]>>
source§impl<'a> CmpWrapper<Option<&'a [i32]>>
impl<'a> CmpWrapper<Option<&'a [i32]>>
source§impl<'a> CmpWrapper<Option<&'a [i64]>>
impl<'a> CmpWrapper<Option<&'a [i64]>>
source§impl<'a> CmpWrapper<Option<&'a [i64]>>
impl<'a> CmpWrapper<Option<&'a [i64]>>
source§impl<'a> CmpWrapper<Option<&'a [i128]>>
impl<'a> CmpWrapper<Option<&'a [i128]>>
source§impl<'a> CmpWrapper<Option<&'a [i128]>>
impl<'a> CmpWrapper<Option<&'a [i128]>>
source§impl<'a> CmpWrapper<Option<&'a [isize]>>
impl<'a> CmpWrapper<Option<&'a [isize]>>
source§impl<'a> CmpWrapper<Option<&'a [isize]>>
impl<'a> CmpWrapper<Option<&'a [isize]>>
source§impl<'a> CmpWrapper<Option<&'a [bool]>>
impl<'a> CmpWrapper<Option<&'a [bool]>>
source§impl<'a> CmpWrapper<Option<&'a [bool]>>
impl<'a> CmpWrapper<Option<&'a [bool]>>
source§impl<'a> CmpWrapper<Option<&'a [char]>>
impl<'a> CmpWrapper<Option<&'a [char]>>
source§impl<'a> CmpWrapper<Option<&'a [char]>>
impl<'a> CmpWrapper<Option<&'a [char]>>
source§impl<'a, 'b> CmpWrapper<Option<&'a [&'b str]>>
impl<'a, 'b> CmpWrapper<Option<&'a [&'b str]>>
source§impl<'a, 'b> CmpWrapper<Option<&'a [&'b str]>>
impl<'a, 'b> CmpWrapper<Option<&'a [&'b str]>>
source§impl<'a, 'b> CmpWrapper<Option<&'a [&'b [u8]]>>
impl<'a, 'b> CmpWrapper<Option<&'a [&'b [u8]]>>
source§impl<'a, 'b> CmpWrapper<Option<&'a [&'b [u8]]>>
impl<'a, 'b> CmpWrapper<Option<&'a [&'b [u8]]>>
source§impl CmpWrapper<&[u8]>
impl CmpWrapper<&[u8]>
source§impl<'a> CmpWrapper<&[u8]>
impl<'a> CmpWrapper<&[u8]>
source§impl<'a> CmpWrapper<Option<&'a [u8]>>
impl<'a> CmpWrapper<Option<&'a [u8]>>
source§impl<'a> CmpWrapper<Option<&'a [u8]>>
impl<'a> CmpWrapper<Option<&'a [u8]>>
source§impl CmpWrapper<&str>
impl CmpWrapper<&str>
source§impl CmpWrapper<&str>
impl CmpWrapper<&str>
source§impl<'a> CmpWrapper<Option<&'a str>>
impl<'a> CmpWrapper<Option<&'a str>>
Trait Implementations§
source§impl<T: Clone> Clone for CmpWrapper<T>
impl<T: Clone> Clone for CmpWrapper<T>
source§fn clone(&self) -> CmpWrapper<T>
fn clone(&self) -> CmpWrapper<T>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<P> ConstCmp for CmpWrapper<P>
impl<P> ConstCmp for CmpWrapper<P>
§type Kind = IsNotStdKind
type Kind = IsNotStdKind
source§impl<T: Debug> Debug for CmpWrapper<T>
impl<T: Debug> Debug for CmpWrapper<T>
source§impl<T: PartialEq> PartialEq for CmpWrapper<T>
impl<T: PartialEq> PartialEq for CmpWrapper<T>
source§fn eq(&self, other: &CmpWrapper<T>) -> bool
fn eq(&self, other: &CmpWrapper<T>) -> bool
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for CmpWrapper<T>
impl<T: Eq> Eq for CmpWrapper<T>
impl<T> StructuralPartialEq for CmpWrapper<T>
Auto Trait Implementations§
impl<T> Freeze for CmpWrapper<T>where
T: Freeze,
impl<T> RefUnwindSafe for CmpWrapper<T>where
T: RefUnwindSafe,
impl<T> Send for CmpWrapper<T>where
T: Send,
impl<T> Sync for CmpWrapper<T>where
T: Sync,
impl<T> Unpin for CmpWrapper<T>where
T: Unpin,
impl<T> UnwindSafe for CmpWrapper<T>where
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)