(val: Result<Cow<dyn Val>, ExecutionError>)
| 1553 | } |
| 1554 | |
| 1555 | fn try_bool(val: Result<Cow<dyn Val>, ExecutionError>) -> Result<bool, ExecutionError> { |
| 1556 | match val { |
| 1557 | Ok(val) => val |
| 1558 | .downcast_ref::<CelBool>() |
| 1559 | .map(|b| *b.inner()) |
| 1560 | .ok_or(ExecutionError::NoSuchOverload), |
| 1561 | Err(err) => Result::Err(err), |
| 1562 | } |
| 1563 | } |
| 1564 | |
| 1565 | impl ops::Add<Value> for Value { |
| 1566 | type Output = ResolveResult; |
no test coverage detected