Expand description
Glob and wildcard matching for AST node text and file paths.
Functionsยง
- extract_
attribute_ text - Render the inner content of an attribute (e.g.,
allow(dead_code)from#[allow(dead_code)]). - extract_
macro_ text - Render a macro invocation as
name!(e.g.,println!) for pattern matching. - extract_
method_ call_ text - Render a method call as
.method_name()for pattern matching. - extract_
type_ text - Render a type with whitespace stripped for consistent pattern matching.
- matches_
glob - Path-aware glob:
*matches one segment,**matches zero or more segments. - matches_
pattern - Test whether
textmatches a glob pattern (*matches any characters).