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

Method tokens

src/pointer.rs:120–125  ·  view source on GitHub ↗

Returns an iterator of `Token`s in the `Pointer`.

(&self)

Source from the content-addressed store, hash-verified

118
119 /// Returns an iterator of `Token`s in the `Pointer`.
120 pub fn tokens(&self) -> Tokens {
121 let mut s = self.0.split('/');
122 // skipping the first '/'
123 s.next();
124 Tokens::new(s)
125 }
126
127 /// Returns the number of tokens in the `Pointer`.
128 pub fn count(&self) -> usize {

Callers 9

shrinkMethod · 0.80
countMethod · 0.80
intersectionMethod · 0.80
into_iterMethod · 0.80
replaceMethod · 0.80
qc_from_tokensFunction · 0.80
fromMethod · 0.80
tokensFunction · 0.80
getMethod · 0.80

Calls 2

newFunction · 0.85
nextMethod · 0.45

Tested by 1

tokensFunction · 0.64