Function mz_sql::plan::typeconv::get_cast

source ·
fn get_cast(
    ecx: &ExprContext<'_>,
    ccx: CastContext,
    from: &ScalarType,
    to: &ScalarType
) -> Option<Box<dyn FnOnce(HirScalarExpr) -> HirScalarExpr>>
Expand description

Get casts directly between two ScalarTypes, with control over the allowed CastContext.