pub enum CanonicalTy {
Constr(CanonicalConstrTy),
Exists(Binder<CanonicalConstrTy>),
}
Expand description
A (shallowly) canonicalized type. This can be either of the form {T | p}
or ∃v0,…,vn. {T | p}
,
where T
doesnt have any (shallow) existential or constraint types.
When canonicalizing a type without a constraint type, p
will be Expr::tt()
.
Variants§
Constr(CanonicalConstrTy)
A type of the form {T | p}
Exists(Binder<CanonicalConstrTy>)
A type of the form ∃v0,…,vn. {T | p}
Implementations§
Source§impl CanonicalTy
impl CanonicalTy
Trait Implementations§
Source§impl Debug for CanonicalTy
impl Debug for CanonicalTy
Auto Trait Implementations§
impl Freeze for CanonicalTy
impl RefUnwindSafe for CanonicalTy
impl Send for CanonicalTy
impl Sync for CanonicalTy
impl Unpin for CanonicalTy
impl UnwindSafe for CanonicalTy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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