Skip to main content

Module pattern

Module pattern 

Source
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 text matches a glob pattern (* matches any characters).