pub fn cast_ok_base(
source: &DataType,
target: &DataType,
allows: CastContext,
) -> bool
Expand description
Checks whether casting from source
to target
is ok in allows
context.
Both source
and target
must be base types, i.e. not struct or array.