MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / is_field_text

Function is_field_text

codegraph-kernel/src/rustlang.rs:1905–1907  ·  view source on GitHub ↗

`/^(?:[A-Za-z_]\w*|\d+)$/`.

(s: &str)

Source from the content-addressed store, hash-verified

1903
1904/// `/^(?:[A-Za-z_]\w*|\d+)$/`.
1905fn 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_]*$/`.
1910fn is_type_name_text(s: &str) -> bool {

Callers 1

macro_receiver_chainFunction · 0.85

Calls 2

is_rust_identFunction · 0.85
allMethod · 0.65

Tested by

no test coverage detected