Returns the set of possible values after applying the `is true` test on all values in this set. The resulting set can only contain 'TRUE' and/or 'FALSE', never 'UNKNOWN'.
(&self)
| 1879 | /// values in this set. |
| 1880 | /// The resulting set can only contain 'TRUE' and/or 'FALSE', never 'UNKNOWN'. |
| 1881 | pub fn is_true(&self) -> Result<Self> { |
| 1882 | let (t, f, u) = self.is_true_false_unknown()?; |
| 1883 | |
| 1884 | match (t, f, u) { |
| 1885 | (true, false, false) => Ok(Self::TRUE), |
| 1886 | (true, _, _) => Ok(Self::TRUE_OR_FALSE), |
| 1887 | (false, _, _) => Ok(Self::FALSE), |
| 1888 | } |
| 1889 | } |
| 1890 | |
| 1891 | /// Return true if the value is definitely false (and not null). |
| 1892 | pub fn is_certainly_false(&self) -> bool { |