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

Method push_back

src/pointer.rs:956–959  ·  view source on GitHub ↗

Pushes a `Token` onto the back of this `Pointer`.

(&mut self, token: impl Into<Token<'t>>)

Source from the content-addressed store, hash-verified

954
955 /// Pushes a `Token` onto the back of this `Pointer`.
956 pub fn push_back<'t>(&mut self, token: impl Into<Token<'t>>) {
957 self.0.push('/');
958 self.0.push_str(token.into().encoded());
959 }
960
961 /// Removes and returns the last `Token` in the `Pointer` if it exists.
962 pub fn pop_back(&mut self) -> Option<Token<'static>> {

Callers 7

with_trailing_tokenMethod · 0.80
push_pop_backFunction · 0.80
qc_pop_and_pushFunction · 0.80
qc_splitFunction · 0.80
lenFunction · 0.80

Calls 1

encodedMethod · 0.80

Tested by 4

push_pop_backFunction · 0.64
lenFunction · 0.64