mz_sql::plan::typeconv

Function can_cast

Source
pub fn can_cast(
    ecx: &ExprContext<'_>,
    ccx: CastContext,
    cast_from: &ScalarType,
    cast_to: &ScalarType,
) -> bool
Expand description

Reports whether it is possible to perform a cast from the specified types.