Skip to main content

CastInfoRead

Trait CastInfoRead 

Source
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§

Source

fn get_explicit_cast( &self, source_type: &TypeReference, target_type: &TypeReference, ) -> Option<CastDefinition>

get explicit cast operation

Source

fn get_implicit_cast( &self, source_type: &TypeReference, target_type: &TypeReference, ) -> Option<CastDefinition>

get implicit cast operation

Source

fn get_implicit_castable( &self, source_type: &TypeReference, ) -> HashSet<TypeReference>

list implicit castable types from source_type

Implementors§

Source§

impl CastInfoRead for BaseContext

Source§

impl<TBaseContext> CastInfoRead for SchemaFileContext<TBaseContext>
where TBaseContext: BaseParseContext + Debug,

Source§

impl<TContext> CastInfoRead for ParsedSchemaDump<TContext>
where TContext: BaseParseContext + Debug,