Skip to main content

Module enums

Module enums 

Source

Re-exportsยง

use std::borrow::Cow; ๐Ÿ”’
use rustc_abi::FieldIdx; ๐Ÿ”’
use rustc_abi::TagEncoding; ๐Ÿ”’
use rustc_abi::VariantIdx; ๐Ÿ”’
use rustc_abi::Variants; ๐Ÿ”’
use rustc_codegen_ssa::debuginfo::type_names::compute_debuginfo_type_name; ๐Ÿ”’
use rustc_codegen_ssa::debuginfo::type_names::cpp_like_debuginfo; ๐Ÿ”’
use rustc_codegen_ssa::debuginfo::tag_base_type; ๐Ÿ”’
use rustc_codegen_ssa::debuginfo::wants_c_like_enum_debuginfo; ๐Ÿ”’
use rustc_codegen_ssa::traits::MiscCodegenMethods; ๐Ÿ”’
use rustc_hir::def::CtorKind; ๐Ÿ”’
use rustc_index::IndexSlice; ๐Ÿ”’
use rustc_middle::mir::CoroutineLayout; ๐Ÿ”’
use rustc_middle::ty::layout::LayoutOf; ๐Ÿ”’
use rustc_middle::ty::layout::TyAndLayout; ๐Ÿ”’
use rustc_middle::ty; ๐Ÿ”’
use rustc_middle::ty::AdtDef; ๐Ÿ”’
use rustc_middle::ty::CoroutineArgs; ๐Ÿ”’
use rustc_middle::ty::CoroutineArgsExt; ๐Ÿ”’
use rustc_middle::ty::Ty; ๐Ÿ”’
use rustc_middle::ty::VariantDef; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_span::bug; ๐Ÿ”’
use super::type_map::DINodeCreationResult; ๐Ÿ”’
use super::type_map::UniqueTypeId; ๐Ÿ”’
use super::SmallVec; ๐Ÿ”’
use super::size_and_align_of; ๐Ÿ”’
use crate::common::CodegenCx; ๐Ÿ”’
use crate::debuginfo::metadata::type_map; ๐Ÿ”’
use crate::debuginfo::metadata::type_map::Stub; ๐Ÿ”’
use crate::debuginfo::metadata::UNKNOWN_LINE_NUMBER; ๐Ÿ”’
use crate::debuginfo::metadata::build_field_di_node; ๐Ÿ”’
use crate::debuginfo::metadata::build_generic_type_param_di_nodes; ๐Ÿ”’
use crate::debuginfo::metadata::file_metadata_from_def_id; ๐Ÿ”’
use crate::debuginfo::metadata::type_di_node; ๐Ÿ”’
use crate::debuginfo::metadata::unknown_file_metadata; ๐Ÿ”’
use crate::debuginfo::utils::DIB; ๐Ÿ”’
use crate::debuginfo::utils::create_DIArray; ๐Ÿ”’
use crate::debuginfo::utils::get_namespace_for_item; ๐Ÿ”’
use crate::llvm::debuginfo::DIFlags; ๐Ÿ”’
use crate::llvm::debuginfo::DIType; ๐Ÿ”’
use crate::llvm; ๐Ÿ”’
use crate::llvm::ToLlvmBool; ๐Ÿ”’

Modulesยง

cpp_like ๐Ÿ”’
native ๐Ÿ”’

Enumsยง

DiscrResult ๐Ÿ”’

Functionsยง

build_c_style_enum_di_node ๐Ÿ”’
Build the debuginfo node for a C-style enum, i.e. an enum the variants of which have no fields.
build_coroutine_di_node ๐Ÿ”’
build_coroutine_variant_struct_type_di_node ๐Ÿ”’
Build the struct type for describing a single coroutine state. See build_coroutine_variant_struct_type_di_node.
build_enum_type_di_node ๐Ÿ”’
build_enum_variant_struct_type_di_node ๐Ÿ”’
Build the debuginfo node for the struct type describing a single variant of an enum.
build_enumeration_type_di_node ๐Ÿ”’
Build a DW_TAG_enumeration_type debuginfo node, with the given base type and variants. This is a helper function and does not register anything in the type map by itself.
compute_discriminant_value ๐Ÿ”’
Returns the discriminant value corresponding to the variant index.