Skip to main content

Module data_structures

Module data_structures 

Source

Re-exportsยง

use std::borrow::Cow; ๐Ÿ”’
use std::fmt; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use rustc_abi::Align; ๐Ÿ”’
use rustc_ast::expand::autodiff_attrs::DiffActivity; ๐Ÿ”’
use rustc_ast::expand::autodiff_attrs::DiffMode; ๐Ÿ”’
use rustc_ast::expand::typetree::TypeTree; ๐Ÿ”’
use rustc_ast::token::DocFragmentKind; ๐Ÿ”’
use rustc_ast::AttrStyle; ๐Ÿ”’
use rustc_ast::Path; ๐Ÿ”’
use rustc_ast::ast; ๐Ÿ”’
use rustc_data_structures::fx::FxIndexMap; ๐Ÿ”’
use rustc_error_messages::DiagArgValue; ๐Ÿ”’
use rustc_error_messages::IntoDiagArg; ๐Ÿ”’
use rustc_macros::Decodable; ๐Ÿ”’
use rustc_macros::Decodable_NoContext; ๐Ÿ”’
use rustc_macros::Encodable; ๐Ÿ”’
use rustc_macros::Encodable_NoContext; ๐Ÿ”’
use rustc_macros::PrintAttribute; ๐Ÿ”’
use rustc_macros::StableHash; ๐Ÿ”’
use rustc_span::def_id::DefId; ๐Ÿ”’
use rustc_span::hygiene::Transparency; ๐Ÿ”’
use rustc_span::ErrorGuaranteed; ๐Ÿ”’
use rustc_span::Ident; ๐Ÿ”’
use rustc_span::Span; ๐Ÿ”’
use rustc_span::Symbol; ๐Ÿ”’
use rustc_structures::CollapseMacroDebuginfo; ๐Ÿ”’
use rustc_structures::CrateType; ๐Ÿ”’
use rustc_structures::Limit; ๐Ÿ”’
use rustc_structures::NativeLibKind; ๐Ÿ”’
use rustc_structures::SanitizerSet; ๐Ÿ”’
use thin_vec::ThinVec; ๐Ÿ”’
use crate::lang_items::LangItem; ๐Ÿ”’
use crate::lint::LintCheck; ๐Ÿ”’
use crate::pretty_printing::PrintAttribute; ๐Ÿ”’
use crate::stability::DefaultBodyStability; ๐Ÿ”’
use crate::stability::PartialConstStability; ๐Ÿ”’
use crate::stability::Stability; ๐Ÿ”’
use crate::diagnostic::*; ๐Ÿ”’
pub use ReprAttr::*;

Structsยง

AutoDiffItem
We generate one of these structs for each #[autodiff(...)] attribute.
CanonicalSymbol
A representation of a canonical symbol
CanonicalSymbols
CfgHideShow
DebugVisualizer
Deprecation
DocAttribute
DocCfgHideShowValue
EiiDecl
EiiImpl
LinkEntry
RustcAutodiff
RustcCleanAttribute
RustcCleanQueries
Represents the except= or loaded_from_disk= argument of #[rustc_clean]
RustcVersion
StrippedCfgItem
UnstableRemovedFeature

Enumsยง

AttributeKind
Represents parsed built-in inert attributes.
BorrowckGraphvizFormatKind
CfgEntry
CguFields
CguKind
CoverageAttrKind
Successfully-parsed value of a #[coverage(..)] attribute.
DebuggerVisualizerType
DeprecatedSince
Release in which an API is deprecated.
DocCfgHideShow
DocInline
EiiImplResolution
HideOrShow
InlineAttr
InstructionSetAttr
InstrumentFnAttr
IntType
Linkage
Possible values for the #[linkage] attribute, allowing to specify the linkage type for a MonoItem.
MacroUseArgs
MirDialect
MirPhase
OptimizeAttr
PeImportNameType
Different ways that the PE Format can decorate a symbol name. From https://docs.microsoft.com/en-us/windows/win32/debug/pe-format#import-name-type
ReprAttr
RtsanSetting
RustcAbiAttrKind
Successfully-parsed value of a #[rustc_abi(..)] attribute.
RustcAssertVarianceKind
RustcDumpLayoutKind
RustcMirKind
RustcShowSpansKind
TransparencyError
UnrollAttr
UsedBy
There are three valid forms of the attribute: #[used], which is equivalent to #[used(linker)] on targets that support it, but #[used(compiler)] if not. #[used(compiler)] #[used(linker)]
WindowsSubsystemKind