Return List of [`String`] represent the inner value of [`IntValue`] or None if this type it's called from wrong [`Value`]
(&self)
| 349 | /// Return List of [`String`] represent the inner value of [`IntValue`] |
| 350 | /// or None if this type it's called from wrong [`Value`] |
| 351 | pub fn as_text(&self) -> Option<String> { |
| 352 | if let Some(text_value) = self.as_any().downcast_ref::<TextValue>() { |
| 353 | return Some(text_value.value.to_string()); |
| 354 | } |
| 355 | None |
| 356 | } |
| 357 | |
| 358 | /// Return true if this value is [`IntValue`] |
| 359 | pub fn is_int(&self) -> bool { |
no test coverage detected