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

Method is_root

src/pointer.rs:133–135  ·  view source on GitHub ↗

Returns `true` if the JSON Pointer equals `""`.

(&self)

Source from the content-addressed store, hash-verified

131
132 /// Returns `true` if the JSON Pointer equals `""`.
133 pub fn is_root(&self) -> bool {
134 self.0.is_empty()
135 }
136
137 /// Returns a `serde_json::Value` representation of this `Pointer`
138 #[cfg(feature = "json")]

Callers 11

assign_arrayFunction · 0.80
assign_objectFunction · 0.80
frontMethod · 0.80
split_frontMethod · 0.80
ends_withMethod · 0.80
intersectionMethod · 0.80
pop_frontMethod · 0.80
appendMethod · 0.80
replaceMethod · 0.80
qc_pop_and_pushFunction · 0.80
qc_splitFunction · 0.80

Calls 1

is_emptyMethod · 0.80

Tested by

no test coverage detected