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

Function is_rust_ident

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

Source from the content-addressed store, hash-verified

1647const RECEIVER_CHAIN_MAX_LINKS: usize = 16;
1648
1649fn is_rust_ident(s: &str) -> bool {
1650 let mut chars = s.chars();
1651 matches!(chars.next(), Some(c) if c.is_ascii_alphabetic() || c == '_')
1652 && chars.all(|c| c.is_ascii_alphanumeric() || c == '_')
1653}
1654
1655/// The receiver chain a method call is written on, when it is fields and
1656/// method calls on `self` or on a name: `self.services.store`,

Callers 1

receiver_chainFunction · 0.85

Calls 1

allMethod · 0.65

Tested by

no test coverage detected