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

Method count

src/pointer.rs:128–130  ·  view source on GitHub ↗

Returns the number of tokens in the `Pointer`.

(&self)

Source from the content-addressed store, hash-verified

126
127 /// Returns the number of tokens in the `Pointer`.
128 pub fn count(&self) -> usize {
129 self.tokens().count()
130 }
131
132 /// Returns `true` if the JSON Pointer equals `""`.
133 pub fn is_root(&self) -> bool {

Callers 4

shrinkMethod · 0.80
replaceMethod · 0.80
qc_pop_and_pushFunction · 0.80
qc_splitFunction · 0.80

Calls 1

tokensMethod · 0.80

Tested by

no test coverage detected