Skip to main content

Module ty_kind

Module ty_kind 

Source

Re-exportsยง

use std::fmt; ๐Ÿ”’
use std::marker::PhantomData; ๐Ÿ”’
use std::ops::Deref; ๐Ÿ”’
use derive_where::derive_where; ๐Ÿ”’
use rustc_abi::ExternAbi; ๐Ÿ”’
use rustc_ast_ir::Mutability; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHash; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHashCtxt; ๐Ÿ”’
use rustc_data_structures::stable_hash::StableHasher; ๐Ÿ”’
use rustc_macros::Decodable_NoContext; ๐Ÿ”’
use rustc_macros::Encodable_NoContext; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_macros::StableHash_NoContext; ๐Ÿ”’
use rustc_type_ir::data_structures::NoError; ๐Ÿ”’
use rustc_type_ir::data_structures::UnifyKey; ๐Ÿ”’
use rustc_type_ir::data_structures::UnifyValue; ๐Ÿ”’
use rustc_type_ir_macros::GenericTypeVisitable; ๐Ÿ”’
use rustc_type_ir_macros::Lift_Generic; ๐Ÿ”’
use rustc_type_ir_macros::TypeFoldable_Generic; ๐Ÿ”’
use rustc_type_ir_macros::TypeVisitable_Generic; ๐Ÿ”’
use crate::ty::AliasTy; ๐Ÿ”’
use crate as ty; ๐Ÿ”’
use crate::BoundVarIndexKind; ๐Ÿ”’
use crate::Const; ๐Ÿ”’
use crate::FloatTy; ๐Ÿ”’
use crate::FreeAliasTy; ๐Ÿ”’
use crate::InherentAliasTy; ๐Ÿ”’
use crate::IntTy; ๐Ÿ”’
use crate::Interner; ๐Ÿ”’
use crate::OpaqueAliasTy; ๐Ÿ”’
use crate::ProjectionAliasTy; ๐Ÿ”’
use crate::Region; ๐Ÿ”’
use crate::UintTy; ๐Ÿ”’
use crate::Unnormalized; ๐Ÿ”’
use self::TyKind::*; ๐Ÿ”’
use crate::inherent::*; ๐Ÿ”’

Modulesยง

closure ๐Ÿ”’

Structsยง

ClosureArgs
A closure can be modeled as a struct that looks like:
ClosureArgsParts
Struct returned by split().
CoroutineArgs
Similar to ClosureArgs; see the above documentation for more.
CoroutineArgsParts
CoroutineClosureArgs
CoroutineClosureArgsParts
See docs for explanation of how each argument is used.
CoroutineClosureSignature
CoroutineWitnessTypes
FloatVid
A floating-point (f32 or f64) type variable ID.
FnHeader
FnSig
FnSigKind
Contains the packed non-type fields of a function signature.
FnSigTys
FoldEscapingRegions
Instantiates a for<'env> ... binder with a specific region.
GenSig
HasRegionsBoundAt
Unlike has_escaping_bound_vars or outermost_exclusive_binder, this will detect only regions bound at the debruijn index.
IntVid
An integral (u32, i32, usize, etc.) type variable ID.
TyVid
A type variable ID.
TypeAndMut
UnsafeBinderInner

Enumsยง

AliasTyKind
FloatVarValue
InferTy
A placeholder for a type that hasnโ€™t been inferred yet.
IntVarValue
IsRigid
Whether an alias type is rigid or potentially normalizeable.
SplattedArgIndexError
Error type for splatted argument index errors.
TyKind
Defines the kinds of types used by the type system.