pub enum TyKind {
Indexed(BaseTy, Expr),
Exists(Binder<Ty>),
Constr(Expr, Ty),
Uninit,
StrgRef(Region, Path, Ty),
Ptr(PtrKind, Path),
Discr(AdtDef, Place),
Param(ParamTy),
Downcast(AdtDef, GenericArgs, Ty, VariantIdx, List<Ty>),
Blocked(Ty),
Infer(TyVid),
}Variants§
Indexed(BaseTy, Expr)
Exists(Binder<Ty>)
Constr(Expr, Ty)
Uninit
StrgRef(Region, Path, Ty)
Ptr(PtrKind, Path)
Discr(AdtDef, Place)
This is a bit of a hack. We use this type internally to represent the result of
Rvalue::Discriminant in a way that we can recover the necessary control information
when checking a match. The hack is that we assume the dicriminant remains the same from
the creation of this type until we use it in a match.
Param(ParamTy)
Downcast(AdtDef, GenericArgs, Ty, VariantIdx, List<Ty>)
Blocked(Ty)
Infer(TyVid)
A type that needs to be inferred by matching the signature against a rust signature.
TyKind::Infer appear as an intermediate step during conv and should not be present in
the final signature.
Implementations§
Trait Implementations§
impl Eq for TyKind
impl StructuralPartialEq for TyKind
Auto Trait Implementations§
impl Freeze for TyKind
impl RefUnwindSafe for TyKind
impl Send for TyKind
impl Sync for TyKind
impl Unpin for TyKind
impl UnwindSafe for TyKind
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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