Expand description
For comparing strings and slices at compile-time.
Modules§
Macros§
- coerce_
to_ cmp - Coerces
referenceto a type that has acosnt_eqmethod. - const_
cmp - const_
cmp_ for - Compares two slices for ordering, evaluating to a
cmp::Ordering - const_
eq - const_
eq_ for - Compares two generic standard library types for equality.
- impl_
cmp - try_
equal - Evaluates to
$ordif it isOrdering::Equal, otherwise returns it from the enclosing function.
Functions§
- cmp_
option_ str - Compares two
Option<&'a str>, returning the ordering ofleftrelative toright. - cmp_str
- A const equivalent of
str::cmp. - eq_
option_ str - Compares two
Option<&'a str>for equality. - eq_str
- A const equivalent of
&strequality comparison.