Trait ra_ap_hir_ty::TypeWalk[][src]

pub trait TypeWalk {
    fn walk(&self, f: &mut impl FnMut(&Ty));
}

This allows walking structures that contain types to do something with those types, similar to Chalk’s Fold trait.

Required methods

fn walk(&self, f: &mut impl FnMut(&Ty))[src]

Loading content...

Implementations on Foreign Types

impl<T: TypeWalk> TypeWalk for Vec<T>[src]

Loading content...

Implementors

impl TypeWalk for CallableSig[src]

impl TypeWalk for FnSubst<Interner>[src]

impl TypeWalk for AliasEq[src]

impl TypeWalk for AliasTy[src]

impl TypeWalk for GenericArg[src]

impl TypeWalk for OpaqueTy[src]

impl TypeWalk for ProjectionTy[src]

impl TypeWalk for Substitution[src]

impl TypeWalk for TraitRef[src]

impl TypeWalk for Ty[src]

impl TypeWalk for WhereClause[src]

impl<T: TypeWalk + HasInterner<Interner = Interner>> TypeWalk for Binders<T>[src]

Loading content...