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

Function is_field_text

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

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

(s: &str)

Source from the content-addressed store, hash-verified

1876
1877/// `/^(?:[A-Za-z_]\w*|\d+)$/`.
1878fn 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_]*$/`.
1883fn 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