Enum rustc_trait_selection::infer::error_reporting::TyCategory [−][src]
pub enum TyCategory {
Closure,
Opaque,
Generator(GeneratorKind),
Foreign,
}Expand description
This is a bare signal of what kind of type we’re dealing with. ty::TyKind tracks
extra information about each type, but we only care about the category.
Variants
Generator(GeneratorKind)Auto Trait Implementations
impl RefUnwindSafe for TyCategoryimpl Send for TyCategoryimpl Sync for TyCategoryimpl Unpin for TyCategoryimpl UnwindSafe for TyCategoryBlanket Implementations
pub fn allocate_from_iter(
arena: &'a Arena<'tcx>,
iter: impl IntoIterator<Item = T>
) -> &'a mut [T]Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may be different between compiler versions and platforms. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte