Skip to main content

Module lang_items

Module lang_items 

Source
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Β§

LanguageItems
All of the lang items, defined or not. Defined lang items can come from the current crate or its dependencies.

EnumsΒ§

GenericRequirement
The requirement imposed on the generics of a lang item
LangItem
A representation of all the valid lang items in Rust.

StaticsΒ§

BINARY_OPERATORS
FN_TRAITS
OPERATORS