Returns `true` if the `Pointer` is empty (i.e. root). ## Examples ``` let mut ptr = jsonptr::PointerBuf::new(); assert!(ptr.is_empty()); ptr.push_back("foo"); assert!(!ptr.is_empty()); ```
(&self)
| 582 | /// assert!(!ptr.is_empty()); |
| 583 | /// ``` |
| 584 | pub fn is_empty(&self) -> bool { |
| 585 | self.0.is_empty() |
| 586 | } |
| 587 | |
| 588 | /// Converts a `Box<Pointer>` into a `PointerBuf` without copying or allocating. |
| 589 | pub fn into_buf(self: Box<Pointer>) -> PointerBuf { |