Returns the last `Token` in the `Pointer`.
(&self)
| 142 | |
| 143 | /// Returns the last `Token` in the `Pointer`. |
| 144 | pub fn back(&self) -> Option<Token> { |
| 145 | self.0 |
| 146 | .rsplit_once('/') |
| 147 | // SAFETY: pointer is encoded |
| 148 | .map(|(_, back)| unsafe { Token::from_encoded_unchecked(back) }) |
| 149 | } |
| 150 | |
| 151 | /// Returns the last token in the `Pointer`. |
| 152 | /// |