Trait rustc::ty::fold::TypeVisitor [−][src]
pub trait TypeVisitor<'tcx>: Sized { fn visit_binder<T: TypeFoldable<'tcx>>(&mut self, t: &Binder<T>) -> bool { ... } fn visit_ty(&mut self, t: Ty<'tcx>) -> bool { ... } fn visit_region(&mut self, r: Region<'tcx>) -> bool { ... } fn visit_const(&mut self, c: &'tcx Const<'tcx>) -> bool { ... } }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Provided Methods
fn visit_binder<T: TypeFoldable<'tcx>>(&mut self, t: &Binder<T>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn visit_ty(&mut self, t: Ty<'tcx>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn visit_region(&mut self, r: Region<'tcx>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn visit_const(&mut self, c: &'tcx Const<'tcx>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Implementors
impl<'a, 'gcx, 'tcx> TypeVisitor<'tcx> for UnresolvedTypeFinder<'a, 'gcx, 'tcx>
impl<'tcx> TypeVisitor<'tcx> for HasEscapingRegionsVisitor
impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor
impl<'tcx> TypeVisitor<'tcx> for LateBoundRegionsCollector
impl<'a, 'gcx, 'tcx, W> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx, W> where
W: StableHasherResult,impl<'tcx> TypeVisitor<'tcx> for LateBoundRegionNameCollector