Function arrow::compute::kernels::cast::can_cast_types[][src]

pub fn can_cast_types(from_type: &DataType, to_type: &DataType) -> bool
Expand description

Return true if a value of type from_type can be cast into a value of to_type. Note that such as cast may be lossy.

If this function returns true to stay consistent with the cast kernel below.