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

Function arrow_at

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

Source from the content-addressed store, hash-verified

805}
806
807#[inline]
808fn arrow_at(s: &[u8], i: usize) -> Option<usize> {
809 if s.get(i) == Some(&b'-') && s.get(i + 1) == Some(&b'>') {
810 Some(i + 2)
811 } else if s.get(i) == Some(&b'.') {
812 Some(i + 1)
813 } else {
814 None
815 }
816}
817
818type 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