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