pub fn return_type( fun: &BuiltinScalarFunction, arg_types: &[DataType]) -> Result<DataType>
Returns the datatype of the scalar function