Return List of [`bool`] represent the inner value of [`BoolValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 396 | /// Return List of [`bool`] represent the inner value of [`BoolValue`] |
| 397 | /// or None if this type it's called from wrong [`Value`] |
| 398 | pub fn as_bool(&self) -> Option<bool> { |
| 399 | if let Some(bool_value) = self.as_any().downcast_ref::<BoolValue>() { |
| 400 | return Some(bool_value.value); |
| 401 | } |
| 402 | None |
| 403 | } |
| 404 | |
| 405 | /// Return true if this value is [`DateValue`] |
| 406 | pub fn is_date(&self) -> bool { |
no test coverage detected