Skip to main content

cmp

Function cmp 

Source
pub fn cmp(a: &Str, b: &Str) -> i32
Expand description

Lexicographic compare over code units — the relational-operator primitive. Returns a sign: the first differing units’ difference, else the length difference (consumers test the sign only).