maybe_data_types

Function maybe_data_types 

Source
fn maybe_data_types(
    valid_types: &[DataType],
    current_types: &[DataType],
) -> Option<Vec<DataType>>
Expand description

Try to coerce the current argument types to match the given valid_types.

For example, if a function func accepts arguments of (int64, int64), but was called with (int32, int64), this function could match the valid_types by coercing the first argument to int64, and would return Some([int64, int64]).