(&self)
| 37 | |
| 38 | impl<'a> WhenCondition<'a> { |
| 39 | pub fn is_empty(&self) -> bool { |
| 40 | match self { |
| 41 | Self::Is(_) => false, |
| 42 | Self::Not(_, _) => false, |
| 43 | Self::And(xs) => xs.is_empty(), |
| 44 | Self::Or(xs) => xs.is_empty(), |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | /// Check if all features in this condition have valid threshold values. |
| 49 | pub fn is_valid(&self, source: &str) -> bool { |
no outgoing calls