macro_rules! tstr_cmp { ($left:ty, $right:ty $(,)*) => { ... }; }
Available on crate features
const_generics
and cmp_traits
only.Expand description
For comparing TStr
types for ordering, using TStrOrd::CMP
§Example
use tstr::{TS, tstr_cmp};
use std::cmp::Ordering;
type Aaa = TS!(Aaa);
type Bbb = TS!(Bbb);
type Ccc = TS!(Ccc);
assert_eq!(tstr_cmp!(Bbb, Ccc), Ordering::Less);
assert_eq!(tstr_cmp!(Bbb, Bbb), Ordering::Equal);
assert_eq!(tstr_cmp!(Bbb, Aaa), Ordering::Greater);