`/^(?:[A-Za-z_]\w*|\d+)$/`.
(s: &str)
| 1876 | |
| 1877 | /// `/^(?:[A-Za-z_]\w*|\d+)$/`. |
| 1878 | fn is_field_text(s: &str) -> bool { |
| 1879 | is_rust_ident(s) || (!s.is_empty() && s.chars().all(|c| c.is_ascii_digit())) |
| 1880 | } |
| 1881 | |
| 1882 | /// `/^[A-Z][A-Za-z0-9_]*$/`. |
| 1883 | fn is_type_name_text(s: &str) -> bool { |
no test coverage detected