Returns true if the `Value` is a String. Returns false otherwise. For any Value on which `is_string` returns true, `as_str` is guaranteed to return the string slice.
(&self)
| 489 | /// For any Value on which `is_string` returns true, `as_str` is guaranteed |
| 490 | /// to return the string slice. |
| 491 | pub fn is_string(&self) -> bool { |
| 492 | self.as_str().is_some() |
| 493 | } |
| 494 | |
| 495 | /// If the `Value` is a String, returns the associated str. Returns None |
| 496 | /// otherwise. |