flux_middle::rty::fold

Trait TypeFolder

Source
pub trait TypeFolder: FallibleTypeFolder<Error = !> {
    // Provided methods
    fn fold_binder<T: TypeFoldable>(&mut self, t: &Binder<T>) -> Binder<T> { ... }
    fn fold_sort(&mut self, sort: &Sort) -> Sort { ... }
    fn fold_ty(&mut self, ty: &Ty) -> Ty { ... }
    fn fold_bty(&mut self, bty: &BaseTy) -> BaseTy { ... }
    fn fold_subset_ty(&mut self, constr: &SubsetTy) -> SubsetTy { ... }
    fn fold_region(&mut self, re: &Region) -> Region { ... }
    fn fold_const(&mut self, c: &Const) -> Const { ... }
    fn fold_expr(&mut self, expr: &Expr) -> Expr { ... }
}

Provided Methods§

Source

fn fold_binder<T: TypeFoldable>(&mut self, t: &Binder<T>) -> Binder<T>

Source

fn fold_sort(&mut self, sort: &Sort) -> Sort

Source

fn fold_ty(&mut self, ty: &Ty) -> Ty

Source

fn fold_bty(&mut self, bty: &BaseTy) -> BaseTy

Source

fn fold_subset_ty(&mut self, constr: &SubsetTy) -> SubsetTy

Source

fn fold_region(&mut self, re: &Region) -> Region

Source

fn fold_const(&mut self, c: &Const) -> Const

Source

fn fold_expr(&mut self, expr: &Expr) -> Expr

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§