pub trait CastInfoRead {
// Required methods
fn get_explicit_cast(
&self,
source_type: &TypeReference,
target_type: &TypeReference,
) -> Option<CastDefinition>;
fn get_implicit_cast(
&self,
source_type: &TypeReference,
target_type: &TypeReference,
) -> Option<CastDefinition>;
fn get_implicit_castable(
&self,
source_type: &TypeReference,
) -> HashSet<TypeReference>;
}Expand description
get cast definition
Required Methods§
Sourcefn get_explicit_cast(
&self,
source_type: &TypeReference,
target_type: &TypeReference,
) -> Option<CastDefinition>
fn get_explicit_cast( &self, source_type: &TypeReference, target_type: &TypeReference, ) -> Option<CastDefinition>
get explicit cast operation
Sourcefn get_implicit_cast(
&self,
source_type: &TypeReference,
target_type: &TypeReference,
) -> Option<CastDefinition>
fn get_implicit_cast( &self, source_type: &TypeReference, target_type: &TypeReference, ) -> Option<CastDefinition>
get implicit cast operation
Sourcefn get_implicit_castable(
&self,
source_type: &TypeReference,
) -> HashSet<TypeReference>
fn get_implicit_castable( &self, source_type: &TypeReference, ) -> HashSet<TypeReference>
list implicit castable types from source_type