Function sql::plan::typeconv::get_cast[][src]

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.