flux_middle::rty::subst

Trait GenericsSubstDelegate

Source
pub trait GenericsSubstDelegate {
    type Error = !;

    // Required methods
    fn sort_for_param(&mut self, param_ty: ParamTy) -> Result<Sort, Self::Error>;
    fn ty_for_param(&mut self, param_ty: ParamTy) -> Result<Ty, Self::Error>;
    fn ctor_for_param(
        &mut self,
        param_ty: ParamTy,
    ) -> Result<SubsetTyCtor, Self::Error>;
    fn region_for_param(&mut self, ebr: EarlyParamRegion) -> Region;
    fn expr_for_param_const(&self, param_const: ParamConst) -> Expr;
    fn const_for_param(&mut self, param: &Const) -> Const;
}

Provided Associated Types§

Source

type Error = !

Required Methods§

Source

fn sort_for_param(&mut self, param_ty: ParamTy) -> Result<Sort, Self::Error>

Source

fn ty_for_param(&mut self, param_ty: ParamTy) -> Result<Ty, Self::Error>

Source

fn ctor_for_param( &mut self, param_ty: ParamTy, ) -> Result<SubsetTyCtor, Self::Error>

Source

fn region_for_param(&mut self, ebr: EarlyParamRegion) -> Region

Source

fn expr_for_param_const(&self, param_const: ParamConst) -> Expr

Source

fn const_for_param(&mut self, param: &Const) -> Const

Implementors§