Returns `Some(true)` if we have an exact value, `Some(false)` if we have an inexact value, and `None` if there is no value.
(&self)
| 87 | /// Returns `Some(true)` if we have an exact value, `Some(false)` if we |
| 88 | /// have an inexact value, and `None` if there is no value. |
| 89 | pub fn is_exact(&self) -> Option<bool> { |
| 90 | match self { |
| 91 | Precision::Exact(_) => Some(true), |
| 92 | Precision::Inexact(_) => Some(false), |
| 93 | _ => None, |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /// Returns the maximum of two (possibly inexact) values, conservatively |
| 98 | /// propagating exactness information. If one of the input values is |
no outgoing calls
no test coverage detected