Struct rustc_hir::lang_items::LanguageItems[][src]

pub struct LanguageItems {
    pub items: Vec<Option<DefId>>,
    pub missing: Vec<LangItem>,
    pub groups: [Vec<DefId>; 1],
}
Expand description

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

Fields

items: Vec<Option<DefId>>

Mappings from lang items to their possibly found DefIds. The index corresponds to the order in LangItem.

missing: Vec<LangItem>

Lang items that were not found during collection.

groups: [Vec<DefId>; 1]

Mapping from LangItemGroup discriminants to all DefIds of lang items in that group.

Implementations

Construct an empty collection of lang items and no missing ones.

Returns the mappings to the possibly found DefIds for each lang item.

Requires that a given LangItem was bound and returns the corresponding DefId. If it wasn’t bound, e.g. due to a missing #[lang = "<it.name()>"], returns an error message as a string.

Returns the DefIds of all lang items in a group.

Returns the DefId of the bool lang item if it is defined.

Returns the DefId of the char lang item if it is defined.

Returns the DefId of the str lang item if it is defined.

Returns the DefId of the array lang item if it is defined.

Returns the DefId of the slice lang item if it is defined.

Returns the DefId of the slice_u8 lang item if it is defined.

Returns the DefId of the str_alloc lang item if it is defined.

Returns the DefId of the slice_alloc lang item if it is defined.

Returns the DefId of the slice_u8_alloc lang item if it is defined.

Returns the DefId of the const_ptr lang item if it is defined.

Returns the DefId of the mut_ptr lang item if it is defined.

Returns the DefId of the const_slice_ptr lang item if it is defined.

Returns the DefId of the mut_slice_ptr lang item if it is defined.

Returns the DefId of the i8 lang item if it is defined.

Returns the DefId of the i16 lang item if it is defined.

Returns the DefId of the i32 lang item if it is defined.

Returns the DefId of the i64 lang item if it is defined.

Returns the DefId of the i128 lang item if it is defined.

Returns the DefId of the isize lang item if it is defined.

Returns the DefId of the u8 lang item if it is defined.

Returns the DefId of the u16 lang item if it is defined.

Returns the DefId of the u32 lang item if it is defined.

Returns the DefId of the u64 lang item if it is defined.

Returns the DefId of the u128 lang item if it is defined.

Returns the DefId of the usize lang item if it is defined.

Returns the DefId of the f32 lang item if it is defined.

Returns the DefId of the f64 lang item if it is defined.

Returns the DefId of the f32_runtime lang item if it is defined.

Returns the DefId of the f64_runtime lang item if it is defined.

Returns the DefId of the sized lang item if it is defined.

Returns the DefId of the unsize lang item if it is defined.

Returns the DefId of the structural_peq lang item if it is defined.

Returns the DefId of the structural_teq lang item if it is defined.

Returns the DefId of the copy lang item if it is defined.

Returns the DefId of the clone lang item if it is defined.

Returns the DefId of the sync lang item if it is defined.

Returns the DefId of the discriminant_kind lang item if it is defined.

Returns the DefId of the discriminant_type lang item if it is defined.

Returns the DefId of the pointee_trait lang item if it is defined.

Returns the DefId of the metadata_type lang item if it is defined.

Returns the DefId of the dyn_metadata lang item if it is defined.

Returns the DefId of the freeze lang item if it is defined.

Returns the DefId of the drop lang item if it is defined.

Returns the DefId of the coerce_unsized lang item if it is defined.

Returns the DefId of the dispatch_from_dyn lang item if it is defined.

Returns the DefId of the add lang item if it is defined.

Returns the DefId of the sub lang item if it is defined.

Returns the DefId of the mul lang item if it is defined.

Returns the DefId of the div lang item if it is defined.

Returns the DefId of the rem lang item if it is defined.

Returns the DefId of the neg lang item if it is defined.

Returns the DefId of the not lang item if it is defined.

Returns the DefId of the bitxor lang item if it is defined.

Returns the DefId of the bitand lang item if it is defined.

Returns the DefId of the bitor lang item if it is defined.

Returns the DefId of the shl lang item if it is defined.

Returns the DefId of the shr lang item if it is defined.

Returns the DefId of the add_assign lang item if it is defined.

Returns the DefId of the sub_assign lang item if it is defined.

Returns the DefId of the mul_assign lang item if it is defined.

Returns the DefId of the div_assign lang item if it is defined.

Returns the DefId of the rem_assign lang item if it is defined.

Returns the DefId of the bitxor_assign lang item if it is defined.

Returns the DefId of the bitand_assign lang item if it is defined.

Returns the DefId of the bitor_assign lang item if it is defined.

Returns the DefId of the shl_assign lang item if it is defined.

Returns the DefId of the shr_assign lang item if it is defined.

Returns the DefId of the index lang item if it is defined.

Returns the DefId of the index_mut lang item if it is defined.

Returns the DefId of the unsafe_cell lang item if it is defined.

Returns the DefId of the va_list lang item if it is defined.

Returns the DefId of the deref lang item if it is defined.

Returns the DefId of the deref_mut lang item if it is defined.

Returns the DefId of the deref_target lang item if it is defined.

Returns the DefId of the receiver lang item if it is defined.

Returns the DefId of the Fn lang item if it is defined.

Returns the DefId of the fn_mut lang item if it is defined.

Returns the DefId of the fn_once lang item if it is defined.

Returns the DefId of the fn_once_output lang item if it is defined.

Returns the DefId of the future_trait lang item if it is defined.

Returns the DefId of the generator_state lang item if it is defined.

Returns the DefId of the generator lang item if it is defined.

Returns the DefId of the unpin lang item if it is defined.

Returns the DefId of the pin lang item if it is defined.

Returns the DefId of the eq lang item if it is defined.

Returns the DefId of the partial_ord lang item if it is defined.

Returns the DefId of the panic lang item if it is defined.

Returns the DefId of the panic_fmt lang item if it is defined.

Returns the DefId of the panic_display lang item if it is defined.

Returns the DefId of the panic_str lang item if it is defined.

Returns the DefId of the const_panic_fmt lang item if it is defined.

Returns the DefId of the panic_bounds_check lang item if it is defined.

Returns the DefId of the panic_info lang item if it is defined.

Returns the DefId of the panic_location lang item if it is defined.

Returns the DefId of the panic_impl lang item if it is defined.

Returns the DefId of the begin_panic lang item if it is defined.

Returns the DefId of the begin_panic_fmt lang item if it is defined.

Returns the DefId of the exchange_malloc lang item if it is defined.

Returns the DefId of the box_free lang item if it is defined.

Returns the DefId of the drop_in_place lang item if it is defined.

Returns the DefId of the oom lang item if it is defined.

Returns the DefId of the alloc_layout lang item if it is defined.

Returns the DefId of the start lang item if it is defined.

Returns the DefId of the eh_personality lang item if it is defined.

Returns the DefId of the eh_catch_typeinfo lang item if it is defined.

Returns the DefId of the owned_box lang item if it is defined.

Returns the DefId of the phantom_data lang item if it is defined.

Returns the DefId of the manually_drop lang item if it is defined.

Returns the DefId of the maybe_uninit lang item if it is defined.

Returns the DefId of the align_offset lang item if it is defined.

Returns the DefId of the termination lang item if it is defined.

Returns the DefId of the Try lang item if it is defined.

Returns the DefId of the slice_len_fn lang item if it is defined.

Returns the DefId of the from_residual lang item if it is defined.

Returns the DefId of the from_output lang item if it is defined.

Returns the DefId of the branch lang item if it is defined.

Returns the DefId of the Ready lang item if it is defined.

Returns the DefId of the Pending lang item if it is defined.

Returns the DefId of the from_generator lang item if it is defined.

Returns the DefId of the get_context lang item if it is defined.

Returns the DefId of the poll lang item if it is defined.

Returns the DefId of the from lang item if it is defined.

Returns the DefId of the Some lang item if it is defined.

Returns the DefId of the None lang item if it is defined.

Returns the DefId of the Ok lang item if it is defined.

Returns the DefId of the Err lang item if it is defined.

Returns the DefId of the Continue lang item if it is defined.

Returns the DefId of the Break lang item if it is defined.

Returns the DefId of the into_iter lang item if it is defined.

Returns the DefId of the next lang item if it is defined.

Returns the DefId of the new_unchecked lang item if it is defined.

Returns the DefId of the RangeFrom lang item if it is defined.

Returns the DefId of the RangeFull lang item if it is defined.

Returns the DefId of the RangeInclusive lang item if it is defined.

Returns the DefId of the range_inclusive_new lang item if it is defined.

Returns the DefId of the Range lang item if it is defined.

Returns the DefId of the RangeToInclusive lang item if it is defined.

Returns the DefId of the RangeTo lang item if it is defined.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Layout

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.

Size: 72 bytes