Expand description
Comparisong-related items.
Re-exports§
pub use crate::polymorphism::kinds::IsNotStdKind;
pub use crate::polymorphism::kinds::IsRefKind;
pub use crate::polymorphism::kinds::IsStdKind;
pub use crate::coerce_to_cmp;
pub use crate::const_cmp;
pub use crate::const_cmp_for;
pub use crate::const_eq;
pub use crate::const_eq_for;
pub use crate::impl_cmp;
pub use crate::max;
pub use crate::max_by;
pub use crate::max_by_key;
pub use crate::min;
pub use crate::min_by;
pub use crate::min_by_key;
Structs§
- A wrapper type for std types, which defines
const_eq
andconst_cmp
methods for them. - Hack used to automatically wrap standard library types inside
CmpWrapper
, while leaving user defined types unwrapped.
Traits§
- Marker trait for types that implement the const comparison methods.
- A helper trait of
ConstCmp
, used for dereferencing.