Skip to main content

is_simple_name_pattern

Function is_simple_name_pattern 

Source
pub fn is_simple_name_pattern(pattern: &str) -> bool
Expand description

Check if a pattern string matches a single step (simple name test).

Returns true if the pattern is a simple name test like para or foo:bar, without path separators, predicates, or union operators.