Expand description
Defines lang items.
Language items are items that represent concepts intrinsic to the language itself. Examples are:
- Traits that specify βkindsβ; e.g.,
Sync,Send. - Traits that represent operators; e.g.,
Add,Sub,Index. - Functions called by the compiler itself.
Re-exportsΒ§
use rustc_data_structures::fx::FxIndexMap;πuse rustc_data_structures::stable_hash::StableHash;πuse rustc_data_structures::stable_hash::StableHashCtxt;πuse rustc_data_structures::stable_hash::StableHasher;πuse rustc_macros::BlobDecodable;πuse rustc_macros::Encodable;πuse rustc_macros::PrintAttribute;πuse rustc_macros::StableHash;πuse rustc_span::def_id::DefId;πuse rustc_span::Symbol;πuse rustc_span::kw;πuse rustc_span::sym;πuse crate::PrintAttribute;πuse crate::target::AssocCtxt;πuse crate::target::MethodKind;πuse crate::target::Target;π
MacrosΒ§
- language_
item_ πtable
StructsΒ§
- Language
Items - All of the lang items, defined or not. Defined lang items can come from the current crate or its dependencies.
EnumsΒ§
- Generic
Requirement - The requirement imposed on the generics of a lang item
- Lang
Item - A representation of all the valid lang items in Rust.