Returns true if the `Value` is a Boolean. Returns false otherwise. For any Value on which `is_boolean` returns true, `as_bool` is guaranteed to return the boolean value.
(&self)
| 527 | /// For any Value on which `is_boolean` returns true, `as_bool` is |
| 528 | /// guaranteed to return the boolean value. |
| 529 | pub fn is_boolean(&self) -> bool { |
| 530 | self.as_bool().is_some() |
| 531 | } |
| 532 | |
| 533 | /// If the `Value` is a Boolean, returns the associated bool. Returns None |
| 534 | /// otherwise. |