MCPcopy Create free account
hub / github.com/chanced/jsonptr / get

Method get

src/pointer/slice.rs:14–16  ·  view source on GitHub ↗
(self, pointer: &'p Pointer)

Source from the content-addressed store, hash-verified

12 type Output = Token<'p>;
13
14 fn get(self, pointer: &'p Pointer) -> Option<Self::Output> {
15 pointer.tokens().nth(self)
16 }
17}
18
19impl<'p> PointerIndex<'p> for core::ops::Range<usize> {

Callers 8

get_singleFunction · 0.45
get_rangeFunction · 0.45
get_from_rangeFunction · 0.45
get_to_rangeFunction · 0.45
get_full_rangeFunction · 0.45
get_range_inclusiveFunction · 0.45
get_to_range_inclusiveFunction · 0.45
get_by_explicit_boundsFunction · 0.45

Calls 3

tokensMethod · 0.80
lenMethod · 0.80
encodedMethod · 0.80

Tested by 8

get_singleFunction · 0.36
get_rangeFunction · 0.36
get_from_rangeFunction · 0.36
get_to_rangeFunction · 0.36
get_full_rangeFunction · 0.36
get_range_inclusiveFunction · 0.36
get_to_range_inclusiveFunction · 0.36
get_by_explicit_boundsFunction · 0.36