[][src]Trait rustc::ty::fold::TypeVisitor

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 an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Provided methods

fn visit_binder<T: TypeFoldable<'tcx>>(&mut self, t: &Binder<T>) -> bool

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn visit_ty(&mut self, t: Ty<'tcx>) -> bool

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn visit_region(&mut self, r: Region<'tcx>) -> bool

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

fn visit_const(&mut self, c: &'tcx Const<'tcx>) -> bool

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Loading content...

Implementors

impl<'tcx> TypeVisitor<'tcx> for BoundNamesCollector[src]

impl<'tcx> TypeVisitor<'tcx> for HasEscapingVarsVisitor[src]

impl<'tcx> TypeVisitor<'tcx> for HasTypeFlagsVisitor[src]

impl<'tcx> TypeVisitor<'tcx> for LateBoundRegionsCollector[src]

Loading content...