If the `Value` is an integer, represent it as i64. Returns None otherwise.
(&self)
| 516 | /// If the `Value` is an integer, represent it as i64. Returns |
| 517 | /// None otherwise. |
| 518 | pub fn as_i64(&self) -> Option<i64> { |
| 519 | match *self { |
| 520 | Value::Integer(n) => Some(n), |
| 521 | _ => None, |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | /// Returns true if the `Value` is a Boolean. Returns false otherwise. |
| 526 | /// |
no outgoing calls
no test coverage detected