flux_middle::rty::normalize

Struct Normalizer

Source
pub(super) struct Normalizer<'a> {
    defs: &'a SpecFuncDefns,
}

Fields§

§defs: &'a SpecFuncDefns

Implementations§

Source§

impl<'a> Normalizer<'a>

Source

pub(super) fn new(defs: &'a SpecFuncDefns) -> Self

Source

fn at_base(expr: Expr, espan: Option<ESpan>) -> Expr

Source

fn app(&mut self, func: &Expr, args: &[Expr], espan: Option<ESpan>) -> Expr

Trait Implementations§

Source§

impl TypeFolder for Normalizer<'_>

Source§

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

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

Auto Trait Implementations§

§

impl<'a> Freeze for Normalizer<'a>

§

impl<'a> RefUnwindSafe for Normalizer<'a>

§

impl<'a> Send for Normalizer<'a>

§

impl<'a> Sync for Normalizer<'a>

§

impl<'a> Unpin for Normalizer<'a>

§

impl<'a> UnwindSafe for Normalizer<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<F> FallibleTypeFolder for F
where F: TypeFolder,

Source§

type Error = !

Source§

fn try_fold_binder<T>( &mut self, t: &Binder<T>, ) -> Result<Binder<T>, <F as FallibleTypeFolder>::Error>
where T: TypeFoldable,

Source§

fn try_fold_sort( &mut self, sort: &Sort, ) -> Result<Sort, <F as FallibleTypeFolder>::Error>

Source§

fn try_fold_ty( &mut self, ty: &Ty, ) -> Result<Ty, <F as FallibleTypeFolder>::Error>

Source§

fn try_fold_bty( &mut self, bty: &BaseTy, ) -> Result<BaseTy, <F as FallibleTypeFolder>::Error>

Source§

fn try_fold_subset_ty( &mut self, ty: &SubsetTy, ) -> Result<SubsetTy, <F as FallibleTypeFolder>::Error>

Source§

fn try_fold_region( &mut self, re: &Region, ) -> Result<Region, <F as FallibleTypeFolder>::Error>

Source§

fn try_fold_const( &mut self, c: &Const, ) -> Result<Const, <F as FallibleTypeFolder>::Error>

Source§

fn try_fold_expr( &mut self, expr: &Expr, ) -> Result<Expr, <F as FallibleTypeFolder>::Error>

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<P> IntoQueryParam<P> for P

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.