Skip to main content

plan_hypothetical_cast_with_failure_mode

Function plan_hypothetical_cast_with_failure_mode 

Source
pub fn plan_hypothetical_cast_with_failure_mode(
    ecx: &ExprContext<'_>,
    ccx: CastContext,
    mode: CastFailureMode,
    from: &SqlScalarType,
    to: &SqlScalarType,
) -> Option<MirScalarExpr>
Expand description

Similar to plan_hypothetical_cast, but with a CastFailureMode to specify behavior.