Skip to main content

is_canon

Function is_canon 

Source
pub fn is_canon(ke: &str) -> bool
Expand description

Returns whether a key expression is valid and in canonical form.

§Arguments

  • ke - the candidate key expression.

§Returns

true if ke equals its own canonize output, so two expressions selecting the same keys compare equal as strings.