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