pub fn can_cast(
ecx: &ExprContext<'_>,
ccx: CastContext,
cast_from: &ScalarType,
cast_to: &ScalarType,
) -> bool
Expand description
Reports whether it is possible to perform a cast from the specified types.
pub fn can_cast(
ecx: &ExprContext<'_>,
ccx: CastContext,
cast_from: &ScalarType,
cast_to: &ScalarType,
) -> bool
Reports whether it is possible to perform a cast from the specified types.