`/^(?:[A-Za-z_]\w*|\d+)$/`.
(s: &str)
| 1903 | |
| 1904 | /// `/^(?:[A-Za-z_]\w*|\d+)$/`. |
| 1905 | fn is_field_text(s: &str) -> bool { |
| 1906 | is_rust_ident(s) || (!s.is_empty() && s.chars().all(|c| c.is_ascii_digit())) |
| 1907 | } |
| 1908 | |
| 1909 | /// `/^[A-Z][A-Za-z0-9_]*$/`. |
| 1910 | fn is_type_name_text(s: &str) -> bool { |
no test coverage detected