Trait replace_types::ReplaceTypes

source ·
pub trait ReplaceTypes {
    // Required method
    fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>);
}
Expand description

Extension trait to replace TypePath for

Required Methods§

source

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

Implementations on Foreign Types§

source§

impl ReplaceTypes for Fields

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Expr

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for GenericParam

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeParamBound

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for WherePredicate

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for FnArg

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ImplItem

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Item

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TraitItem

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Pat

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for GenericArgument

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PathArguments

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Stmt

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ReturnType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Type

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Field

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for FieldsNamed

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for FieldsUnnamed

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Variant

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Arm

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprArray

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprAssign

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprAsync

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprAwait

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprBinary

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprBlock

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprBreak

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprCall

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprCast

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprClosure

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprConst

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprField

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprForLoop

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprGroup

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprIf

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprIndex

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprLet

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprLoop

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprMatch

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprMethodCall

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprParen

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprPath

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprRange

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprReference

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprRepeat

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprReturn

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprStruct

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprTry

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprTryBlock

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprTuple

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprUnary

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprUnsafe

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprWhile

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ExprYield

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for FieldValue

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ConstParam

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Generics

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PredicateType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TraitBound

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeParam

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for WhereClause

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ImplItemConst

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ImplItemFn

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ImplItemType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemConst

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemEnum

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemFn

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemImpl

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemMod

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemStatic

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemStruct

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemTrait

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemTraitAlias

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ItemUnion

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Receiver

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Signature

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TraitItemConst

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TraitItemFn

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TraitItemType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for FieldPat

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatIdent

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatOr

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatParen

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatReference

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatSlice

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatStruct

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatTuple

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatTupleStruct

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PatType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for AngleBracketedGenericArguments

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for AssocConst

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for AssocType

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Constraint

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for ParenthesizedGenericArguments

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Path

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for PathSegment

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for QSelf

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<GenericParam, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<TypeParamBound, Plus>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<WherePredicate, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<FnArg, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<GenericArgument, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<Type, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<Field, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<Variant, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<FieldValue, Comma>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Punctuated<PathSegment, PathSep>

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Block

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for Local

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for LocalInit

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for BareFnArg

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeArray

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeBareFn

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeGroup

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeImplTrait

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeParen

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypePath

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypePtr

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeReference

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeSlice

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeTraitObject

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl ReplaceTypes for TypeTuple

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl<'a, T> ReplaceTypes for IterMut<'a, T>
where T: ReplaceTypes,

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

source§

impl<'a, T> ReplaceTypes for IterMut<'a, T>
where T: ReplaceTypes,

source§

fn replace_types(&mut self, substitutions: &HashMap<TypePath, TypePath>)

Implementors§