macro_rules! equal {
    ($lhs: expr, $rhs: expr) => { ... };
}
Expand description

Checks that two strings are equal.

Examples

const A: &str = "hello";
const B: &str = "world";
const C: &str = "hello";
const EQ_AB: bool = const_str::equal!(A, B);
const EQ_AC: bool = const_str::equal!(A, C);
assert_eq!([EQ_AB, EQ_AC], [false, true]);