Returns true if the expression node is volatile, i.e. whether it can return different results when evaluated multiple times with the same input. Note: unlike [`Self::is_volatile`], this function does not consider inputs: - `rand()` returns `true`, - `a + rand()` returns `false`
(&self)
| 2136 | /// - `rand()` returns `true`, |
| 2137 | /// - `a + rand()` returns `false` |
| 2138 | pub fn is_volatile_node(&self) -> bool { |
| 2139 | matches!(self, Expr::ScalarFunction(func) if func.func.signature().volatility == Volatility::Volatile) |
| 2140 | } |
| 2141 | |
| 2142 | /// Returns true if the expression is volatile, i.e. whether it can return different |
| 2143 | /// results when evaluated multiple times with the same input. |
no outgoing calls
no test coverage detected