Macro tstr::tstr_ne

source ·
macro_rules! tstr_ne {
    ($left:ty, $right:ty $(,)*) => { ... };
}
Available on crate feature cmp_traits only.
Expand description

For comparing TStr types for inequality, using TStrEq::NE

§Example

use tstr::{TS, tstr_ne};

assert!(!tstr_ne!(TS!("foo"), TS!("foo")));
assert!( tstr_ne!(TS!("foo"), TS!("bar")));

type Foo = TS!("foo");
type Bar = TS!("bar");

assert!(!tstr_ne!(Foo, Foo));
assert!( tstr_ne!(Foo, Bar));