Returns an iterator of `Token`s in the `Pointer`.
(&self)
| 118 | |
| 119 | /// Returns an iterator of `Token`s in the `Pointer`. |
| 120 | pub fn tokens(&self) -> Tokens { |
| 121 | let mut s = self.0.split('/'); |
| 122 | // skipping the first '/' |
| 123 | s.next(); |
| 124 | Tokens::new(s) |
| 125 | } |
| 126 | |
| 127 | /// Returns the number of tokens in the `Pointer`. |
| 128 | pub fn count(&self) -> usize { |