pub fn plan_hypothetical_cast(
    ecx: &ExprContext<'_>,
    ccx: CastContext,
    from: &ScalarType,
    to: &ScalarType
) -> Option<MirScalarExpr>
Expand description

Similar to plan_cast, but for situations where you only know the type of the input expression (from) and not the expression itself. The returned expression refers to the first column of some imaginary row, where the first column is assumed to have type from.

If casting from from to to is not possible, returns None.