()
| 73 | RE.get_or_init(|| Regex::new(r"^[A-Za-z_]\w*$").unwrap()) |
| 74 | } |
| 75 | fn capitalized_re() -> &'static Regex { |
| 76 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 77 | RE.get_or_init(|| Regex::new(r"^[A-Z][A-Za-z0-9_]*$").unwrap()) |
| 78 | } |
| 79 | fn method_ref_type_re() -> &'static Regex { |
| 80 | static RE: OnceLock<Regex> = OnceLock::new(); |
| 81 | RE.get_or_init(|| Regex::new(r"^([A-Z][A-Za-z0-9_]*)\s*::").unwrap()) |
no test coverage detected