Returns the length of `self` in encoded format. This length expresses the byte count of the underlying string that represents the RFC 6091 Pointer. See also [`std::str::len`]. ## Examples ``` let mut ptr = jsonptr::PointerBuf::parse("/foo/bar").unwrap(); assert_eq!(ptr.len(), 8); ptr.push_back("~"); assert_eq!(ptr.len(), 11); ```
(&self)
| 568 | /// |
| 569 | /// ``` |
| 570 | pub fn len(&self) -> usize { |
| 571 | self.0.len() |
| 572 | } |
| 573 | |
| 574 | /// Returns `true` if the `Pointer` is empty (i.e. root). |
| 575 | /// |
no outgoing calls
no test coverage detected