cairo_lang_semantic::expr::inference::canonic

Enum NoError

source
pub enum NoError {}
Expand description

A ‘never’ error.

Trait Implementations§

source§

impl Debug for NoError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'a> SemanticRewriter<Ambiguity, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut Ambiguity, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ClosureTypeLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteEnumId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteEnumLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteExternTypeId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteExternTypeLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteFunction, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteFunctionWithBody, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteFunctionWithBodyId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteImplId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteImplLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteStructId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteStructLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteTraitGenericFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteTraitGenericFunctionLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteTraitId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteTraitLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteTypeId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConcreteVariant, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Condition, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut Condition, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl SemanticRewriter<ConstValue, NoError> for Inference<'_>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConstValueId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConstVar, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ConstantId, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, _value: &mut ConstantId, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<EnumId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Expr, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut Expr, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprAssignment, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprAssignment, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprBlock, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprBlock, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprClosure, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprClosure, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprConstant, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprConstant, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprDesnap, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprDesnap, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprEnumVariantCtor, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprEnumVariantCtor, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprFixedSizeArray, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprFixedSizeArray, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprFor, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprFor, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprFunctionCall, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprFunctionCall, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprFunctionCallArg, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprFunctionCallArg, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprIf, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprIf, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprLiteral, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprLiteral, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprLogicalOperator, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprLogicalOperator, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprLoop, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprLoop, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprMatch, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprMatch, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprMemberAccess, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprMemberAccess, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprMissing, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprMissing, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprPropagateError, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprPropagateError, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprSnapshot, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprSnapshot, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprStringLiteral, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprStringLiteral, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprStructCtor, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprStructCtor, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprTuple, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprTuple, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExprVar, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ExprVarMemberPath, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ExprWhile, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut ExprWhile, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ExternFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ExternTypeId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<FixedSizeArrayItems, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut FixedSizeArrayItems, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<FreeFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<FunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<FunctionLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GeneratedImplId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GeneratedImplItems, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GeneratedImplLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericArgumentId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericFunctionWithBodyId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericParam, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericParamConst, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericParamId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericParamImpl, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<GenericParamType, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Id<Expr>, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Id<Pattern>, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, _value: &mut PatternId, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<Id<Statement>, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, _value: &mut StatementId, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<ImplAliasId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplConstantId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplDefId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplFunctionBodyId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplGenericFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplGenericFunctionWithBodyId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl SemanticRewriter<ImplId, NoError> for Inference<'_>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplImplDefId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplImplId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl SemanticRewriter<ImplLongId, NoError> for Inference<'_>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplTypeId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplVar, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ImplVarId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<InferenceId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<InferenceVar, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<LocalConstVarId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<LocalImplVarId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<LocalTypeVarId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<LocalVarId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<LocalVariable, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut LocalVariable, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<MatchArm, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut MatchArm, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<MatchArmSelector, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Member, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut Member, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<MemberId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ParamId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Parameter, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Pattern, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut Pattern, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternEnumVariant, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternEnumVariant, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternFixedSizeArray, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternFixedSizeArray, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternLiteral, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternLiteral, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternMissing, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternMissing, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternOtherwise, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternOtherwise, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternStringLiteral, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternStringLiteral, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternStruct, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternStruct, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternTuple, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternTuple, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<PatternVariable, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut PatternVariable, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<Signature, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<Statement, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut Statement, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StatementBreak, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut StatementBreak, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StatementContinue, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut StatementContinue, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StatementExpr, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut StatementExpr, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StatementItem, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut StatementItem, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StatementLet, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut StatementLet, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StatementReturn, NoError> for Inference<'a>

source§

fn internal_rewrite( &mut self, value: &mut StatementReturn, ) -> Result<RewriteResult, NoError>

source§

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

source§

impl<'a> SemanticRewriter<StructId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<TraitConstantId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<TraitFunctionId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<TraitId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<TraitImplId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<TraitTypeId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl SemanticRewriter<TypeId, NoError> for Inference<'_>

source§

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

source§

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

source§

impl SemanticRewriter<TypeLongId, NoError> for Inference<'_>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<TypeVar, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<UninferredGeneratedImplId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<UninferredGeneratedImplLongId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<UninferredImpl, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<ValueSelectorArm, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<VarId, NoError> for Inference<'a>

source§

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

source§

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

source§

impl<'a> SemanticRewriter<VariantId, NoError> for Inference<'a>

source§

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

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