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

Function is_rust_ident

codegraph-kernel/src/rustlang.rs:1696–1700  ·  view source on GitHub ↗
(s: &str)

Source from the content-addressed store, hash-verified

1694const RECEIVER_CHAIN_MAX_LINKS: usize = 16;
1695
1696fn is_rust_ident(s: &str) -> bool {
1697 let mut chars = s.chars();
1698 matches!(chars.next(), Some(c) if c.is_ascii_alphabetic() || c == '_')
1699 && chars.all(|c| c.is_ascii_alphanumeric() || c == '_')
1700}
1701
1702/// A path value's text as normalizeSpecial accepts it: `/^[A-Za-z_][\w:#]*$/`.
1703fn is_path_value_text(s: &str) -> bool {

Callers 4

receiver_chainFunction · 0.85
is_field_textFunction · 0.85
macro_receiver_chainFunction · 0.85
macro_method_call_nameFunction · 0.85

Calls 1

allMethod · 0.65

Tested by

no test coverage detected