Trait TypeMappingFn

Source
pub trait TypeMappingFn<'a, TM: TypeMapping>: 'a {
    // Required method
    fn map_type<'c>(
        &self,
        inv: TM::InV<'c>,
        ty: &CustomType,
    ) -> Result<TM::OutV<'c>>;
}
Expand description

A helper trait to name the type of the Callback used by TypeMap<TM>.

Required Methods§

Source

fn map_type<'c>( &self, inv: TM::InV<'c>, ty: &CustomType, ) -> Result<TM::OutV<'c>>

Implementors§

Source§

impl<'a, TM: TypeMapping, F: for<'c> TypeMapFnHelper<'c, TM> + 'a> TypeMappingFn<'a, TM> for F