1//===----------------------------------------------------------------------===//
2// DuckDB
3//
4// duckdb/function/cast_rules.hpp
5//
6//
7//===----------------------------------------------------------------------===//
8
9#pragma once
10
11#include "duckdb/common/types.hpp"
12
13namespace duckdb {
14//! Contains a list of rules for casting
15class CastRules {
16public:
17 //! Returns the cost of performing an implicit cost from "from" to "to", or -1 if an implicit cast is not possible
18 static int64_t ImplicitCast(const LogicalType &from, const LogicalType &to);
19};
20
21} // namespace duckdb
22