Function ezno_checker::features::as_cast
source ยท pub fn as_cast(
on: TypeId,
cast_to: TypeId,
types: &mut TypeStore
) -> Result<TypeId, ()>
Expand description
Returns result of *on* as *cast_to*
. Returns Err(())
for invalid casts where invalid casts
occur for casting a constant