pub trait OrdStr: EqStr + for<'a> PartialOrd<&'a str> {
// Required method
fn cmp(&self, other: &str) -> Ordering;
}Expand description
Trait for types that form a total ordering together with str.
This trait may implemented by a type that is comparable to str such that the values of that
type and str can be placed in a single total ordering. It is equivalent in all respects to
std::cmp::Ord excepting that it indicates that the type implementing it joins together in a
total ordering with str.