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

Function arrow_at

codegraph-kernel/src/cfnptr.rs:789–797  ·  view source on GitHub ↗
(s: &[u8], i: usize)

Source from the content-addressed store, hash-verified

787}
788
789#[inline]
790fn arrow_at(s: &[u8], i: usize) -> Option<usize> {
791 if s.get(i) == Some(&b'-') && s.get(i + 1) == Some(&b'>') {
792 Some(i + 2)
793 } else if s.get(i) == Some(&b'.') {
794 Some(i + 1)
795 } else {
796 None
797 }
798}
799
800type Range = (usize, usize);

Callers 2

field_assign_atFunction · 0.85
arrow_tailFunction · 0.85

Calls 1

getMethod · 0.65

Tested by

no test coverage detected