fn get_cast(
ecx: &ExprContext<'_>,
ccx: CastContext,
from: &ScalarType,
to: &ScalarType,
) -> Option<Box<dyn FnOnce(HirScalarExpr) -> HirScalarExpr>>
Expand description
Get casts directly between two ScalarType
s, with control over the
allowed CastContext
.