Skip to main content

Module structural_impls

Module structural_impls 

Source
Expand description

This module contains implementations of the Lift, TypeFoldable and TypeVisitable traits for various types in the Rust compiler. Most are written by hand, though weโ€™ve recently added some macros and proc-macros to help with the tedium.

Re-exportsยง

use std::fmt; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use std::fmt::Debug; ๐Ÿ”’
use rustc_abi::TyAndLayout; ๐Ÿ”’
use rustc_hir::def::Namespace; ๐Ÿ”’
use rustc_hir::def_id::LocalDefId; ๐Ÿ”’
use rustc_span::Spanned; ๐Ÿ”’
use rustc_type_ir::PredicateProxy; ๐Ÿ”’
use rustc_type_ir::TypeFolder; ๐Ÿ”’
use rustc_type_ir::Upcast; ๐Ÿ”’
use rustc_type_ir::VisitorResult; ๐Ÿ”’
use rustc_type_ir::try_visit; ๐Ÿ”’
use super::GenericArg; ๐Ÿ”’
use super::GenericArgKind; ๐Ÿ”’
use super::Pattern; ๐Ÿ”’
use crate::mir::PlaceElem; ๐Ÿ”’
use crate::ty::print::FmtPrinter; ๐Ÿ”’
use crate::ty::print::Printer; ๐Ÿ”’
use crate::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use crate::ty::print::with_no_trimmed_paths; ๐Ÿ”’
use crate::ty; ๐Ÿ”’
use crate::ty::Binder; ๐Ÿ”’
use crate::ty::FallibleTypeFolder; ๐Ÿ”’
use crate::ty::Lift; ๐Ÿ”’
use crate::ty::ProjectionClause; ๐Ÿ”’
use crate::ty::Term; ๐Ÿ”’
use crate::ty::TermKind; ๐Ÿ”’
use crate::ty::Ty; ๐Ÿ”’
use crate::ty::TyCtxt; ๐Ÿ”’
use crate::ty::TypeFoldable; ๐Ÿ”’
use crate::ty::TypeFoldable; ๐Ÿ”’
use crate::ty::TypeSuperFoldable; ๐Ÿ”’
use crate::ty::TypeSuperVisitable; ๐Ÿ”’
use crate::ty::TypeVisitable; ๐Ÿ”’
use crate::ty::TypeVisitable; ๐Ÿ”’
use crate::ty::TypeVisitor; ๐Ÿ”’

Macrosยง

list_fold ๐Ÿ”’