pub enum Tyvar {
Bound(u32),
Free(FreeTyvar),
}
Expand description
We explicitly distinguish between bound type variables, which are
can only only present on types that are themselves inside a
QualifiedInstance
or Component
, and free type variables
that are used while constructing or deconstructing such a type in
a Ctx
.
Variants§
Bound(u32)
A bound type variable as a de Bruijn index (0 is the innermost binder)
Free(FreeTyvar)
A free type variable, whose bounds/other information are stored in the context
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tyvar
impl RefUnwindSafe for Tyvar
impl Send for Tyvar
impl Sync for Tyvar
impl Unpin for Tyvar
impl UnwindSafe for Tyvar
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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