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.

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
LangItem
A representation of all the valid lang items in Rust.

Statics§

BINARY_OPERATORS
FN_TRAITS
OPERATORS

Functions§

extract
Extracts the first lang = "$name" out of a list of attributes. The #[panic_handler] attribute is also extracted out when found.