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

Function is_field_text

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

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

(s: &str)

Source from the content-addressed store, hash-verified

1907
1908/// `/^(?:[A-Za-z_]\w*|\d+)$/`.
1909fn 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_]*$/`.
1914fn 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