cairo_lang_semantic::substitution

Struct SubstitutionRewriter

Source
pub struct SubstitutionRewriter<'a> {
    pub db: &'a dyn SemanticGroup,
    pub substitution: &'a GenericSubstitution,
}

Fields§

§db: &'a dyn SemanticGroup§substitution: &'a GenericSubstitution

Trait Implementations§

Source§

impl<'a> HasDb<&'a dyn SemanticGroup> for SubstitutionRewriter<'a>

Source§

fn get_db(&self) -> &'a dyn SemanticGroup

Source§

impl<'a> SemanticRewriter<ClosureTypeLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ClosureTypeLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteEnumId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteEnumId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteEnumLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteEnumLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteExternTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteExternTypeId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteExternTypeLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteExternTypeLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteFunction, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteFunction, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteFunctionWithBody, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteFunctionWithBody, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteFunctionWithBodyId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteFunctionWithBodyId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteImplId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteImplId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteImplLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteImplLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteStructId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteStructId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteStructLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteStructLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteTraitGenericFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteTraitGenericFunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteTraitGenericFunctionLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteTraitGenericFunctionLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteTraitId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteTraitId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteTraitLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteTraitLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteTypeId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConcreteVariant, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConcreteVariant, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConstValue, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite(&mut self, value: &mut ConstValue) -> Maybe<RewriteResult>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConstValueId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ConstValueId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ConstVar, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ConstVar, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<EnumId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut EnumId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ExprVar, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ExprVar, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ExprVarMemberPath, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ExprVarMemberPath, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ExternFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ExternFunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ExternTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ExternTypeId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<FreeFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut FreeFunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<FunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut FunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<FunctionLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut FunctionLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GeneratedImplId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GeneratedImplId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GeneratedImplItems, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GeneratedImplItems, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GeneratedImplLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GeneratedImplLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericArgumentId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericArgumentId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericFunctionId, ) -> Maybe<RewriteResult>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericFunctionWithBodyId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericFunctionWithBodyId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericParam, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericParam, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericParamConst, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericParamConst, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericParamId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut GenericParamId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericParamImpl, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericParamImpl, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<GenericParamType, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut GenericParamType, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<Id<Expr>, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ExprId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplAliasId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ImplAliasId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplConstantId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplConstantId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplDefId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ImplDefId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplFunctionBodyId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ImplFunctionBodyId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ImplFunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplGenericFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplGenericFunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplGenericFunctionWithBodyId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplGenericFunctionWithBodyId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplImplDefId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ImplImplDefId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplImplId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplImplId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite(&mut self, value: &mut ImplLongId) -> Maybe<RewriteResult>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplTypeId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplVar, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplVar, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ImplVarId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ImplVarId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<InferenceId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut InferenceId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<InferenceVar, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut InferenceVar, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<LocalConstVarId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut LocalConstVarId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<LocalImplVarId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut LocalImplVarId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<LocalTypeVarId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut LocalTypeVarId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<LocalVarId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut LocalVarId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<MatchArmSelector, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut MatchArmSelector, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<MemberId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut MemberId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ParamId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut ParamId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<Parameter, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut Parameter, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<Signature, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut Signature, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<StructId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut StructId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TraitConstantId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut TraitConstantId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TraitFunctionId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut TraitFunctionId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TraitId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut TraitId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TraitImplId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut TraitImplId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TraitTypeId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut TraitTypeId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TypeId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite(&mut self, value: &mut TypeId) -> Maybe<RewriteResult>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TypeLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite(&mut self, value: &mut TypeLongId) -> Maybe<RewriteResult>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<TypeVar, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut TypeVar, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<UninferredGeneratedImplId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut UninferredGeneratedImplId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<UninferredGeneratedImplLongId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut UninferredGeneratedImplLongId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<UninferredImpl, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut UninferredImpl, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<ValueSelectorArm, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, value: &mut ValueSelectorArm, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<VarId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut VarId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<'a> SemanticRewriter<VariantId, DiagnosticAdded> for SubstitutionRewriter<'a>

Source§

fn internal_rewrite( &mut self, _value: &mut VariantId, ) -> Result<RewriteResult, DiagnosticAdded>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T0, T1, E, TRewriter> SemanticRewriter<(T0, T1), E> for TRewriter
where TRewriter: SemanticRewriter<T0, E> + SemanticRewriter<T1, E>,

Source§

fn internal_rewrite(&mut self, value: &mut (T0, T1)) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, E, TRewriter> SemanticRewriter<Box<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

Source§

fn internal_rewrite(&mut self, value: &mut Box<T>) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, E, TRewriter> SemanticRewriter<Option<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

Source§

fn internal_rewrite( &mut self, value: &mut Option<T>, ) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, V, E, TRewriter> SemanticRewriter<OrderedHashMap<T, V>, E> for TRewriter
where T: Clone, V: Clone, TRewriter: SemanticRewriter<V, E>,

Source§

fn internal_rewrite( &mut self, value: &mut OrderedHashMap<T, V>, ) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, E, TRewriter, E2> SemanticRewriter<Result<T, E2>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

Source§

fn internal_rewrite( &mut self, value: &mut Result<T, E2>, ) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, E, TRewriter> SemanticRewriter<Vec<T>, E> for TRewriter
where T: Clone, TRewriter: SemanticRewriter<T, E>,

Source§

fn internal_rewrite(&mut self, value: &mut Vec<T>) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, E, TRewriter> SemanticRewriter<VecDeque<T>, E> for TRewriter
where TRewriter: SemanticRewriter<T, E>,

Source§

fn internal_rewrite( &mut self, value: &mut VecDeque<T>, ) -> Result<RewriteResult, E>

Source§

fn rewrite(&mut self, value: T) -> Result<T, Error>

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Upcast<T> for T
where T: ?Sized,

Source§

fn upcast(&self) -> &T

Source§

impl<T> UpcastMut<T> for T
where T: ?Sized,

Source§

fn upcast_mut(&mut self) -> &mut T

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more