Skip to main content

definition_grep_pattern

Function definition_grep_pattern 

Source
pub fn definition_grep_pattern(term: &str) -> String
Expand description

A POSIX-ERE pattern (for git grep -E) matching a Rust DEFINITION of termfn/struct/trait/enum/type/const/static/union/mod, with an optional pub/async/unsafe, at line start, the symbol word-bounded — and NOT a bare mention.