Reports whether it is possible to perform a cast from the specified types.
(
ecx: &ExprContext,
ccx: CastContext,
cast_from: &SqlScalarType,
cast_to: &SqlScalarType,
)
| 1568 | |
| 1569 | /// Reports whether it is possible to perform a cast from the specified types. |
| 1570 | pub fn can_cast( |
| 1571 | ecx: &ExprContext, |
| 1572 | ccx: CastContext, |
| 1573 | cast_from: &SqlScalarType, |
| 1574 | cast_to: &SqlScalarType, |
| 1575 | ) -> bool { |
| 1576 | get_cast(ecx, ccx, cast_from, cast_to).is_ok() |
| 1577 | } |
no test coverage detected