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 more