Skip to main content

is_valid

Function is_valid 

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

Returns whether a string is a well-formed key expression.

§Arguments

  • ke - the candidate key expression.

§Returns

true if ke is /-joined non-empty chunks with no leading, trailing, or doubled /, where each chunk is *, **, or a literal in which * appears only as part of $* and $ only before *, with no ? or #.