sql_fun_sqlast/sem/parse_context/
cast_info.rs1use std::collections::HashSet;
2
3use crate::sem::{CastDefinition, TypeReference};
4
5pub trait CastInfoRead {
7 fn get_explicit_cast(
9 &self,
10 source_type: &TypeReference,
11 target_type: &TypeReference,
12 ) -> Option<CastDefinition>;
13
14 fn get_implicit_cast(
16 &self,
17 source_type: &TypeReference,
18 target_type: &TypeReference,
19 ) -> Option<CastDefinition>;
20
21 fn get_implicit_castable(&self, source_type: &TypeReference) -> HashSet<TypeReference>;
23}