macro_rules! tstr_eq {
($left:ty, $right:ty $(,)*) => { ... };
}
Available on crate feature
cmp_traits
only.Expand description
For comparing TStr
types for equality, using TStrEq::EQ
.
Example
use tstr::{TS, tstr_eq};
assert!( tstr_eq!(TS!("foo"), TS!("foo")));
assert!(!tstr_eq!(TS!("foo"), TS!("bar")));
type Foo = TS!("foo");
type Bar = TS!("bar");
assert!( tstr_eq!(Foo, Foo));
assert!(!tstr_eq!(Foo, Bar));