Pushes a `Token` onto the front of this `Pointer`.
(&mut self, token: impl Into<Token<'t>>)
| 948 | |
| 949 | /// Pushes a `Token` onto the front of this `Pointer`. |
| 950 | pub fn push_front<'t>(&mut self, token: impl Into<Token<'t>>) { |
| 951 | self.0.insert(0, '/'); |
| 952 | self.0.insert_str(1, token.into().encoded()); |
| 953 | } |
| 954 | |
| 955 | /// Pushes a `Token` onto the back of this `Pointer`. |
| 956 | pub fn push_back<'t>(&mut self, token: impl Into<Token<'t>>) { |