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

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

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.