Struct rustc_hir::lang_items::LanguageItems
source · pub struct LanguageItems {
items: [Option<DefId>; 191],
reverse_items: FxIndexMap<DefId, LangItem>,
pub missing: Vec<LangItem>,
}
Expand description
All of the lang items, defined or not. Defined lang items can come from the current crate or its dependencies.
Fields§
§items: [Option<DefId>; 191]
Mappings from lang items to their possibly found DefId
s.
The index corresponds to the order in LangItem
.
reverse_items: FxIndexMap<DefId, LangItem>
§missing: Vec<LangItem>
Lang items that were not found during collection.
Implementations§
source§impl LanguageItems
impl LanguageItems
source§impl LanguageItems
impl LanguageItems
sourcepub fn sized_trait(&self) -> Option<DefId>
pub fn sized_trait(&self) -> Option<DefId>
Returns the DefId
of the sized
lang item if it is defined.
sourcepub fn unsize_trait(&self) -> Option<DefId>
pub fn unsize_trait(&self) -> Option<DefId>
Returns the DefId
of the unsize
lang item if it is defined.
sourcepub fn structural_peq_trait(&self) -> Option<DefId>
pub fn structural_peq_trait(&self) -> Option<DefId>
Returns the DefId
of the structural_peq
lang item if it is defined.
sourcepub fn copy_trait(&self) -> Option<DefId>
pub fn copy_trait(&self) -> Option<DefId>
Returns the DefId
of the copy
lang item if it is defined.
sourcepub fn clone_trait(&self) -> Option<DefId>
pub fn clone_trait(&self) -> Option<DefId>
Returns the DefId
of the clone
lang item if it is defined.
sourcepub fn sync_trait(&self) -> Option<DefId>
pub fn sync_trait(&self) -> Option<DefId>
Returns the DefId
of the sync
lang item if it is defined.
sourcepub fn discriminant_kind_trait(&self) -> Option<DefId>
pub fn discriminant_kind_trait(&self) -> Option<DefId>
Returns the DefId
of the discriminant_kind
lang item if it is defined.
sourcepub fn discriminant_type(&self) -> Option<DefId>
pub fn discriminant_type(&self) -> Option<DefId>
Returns the DefId
of the discriminant_type
lang item if it is defined.
sourcepub fn pointee_trait(&self) -> Option<DefId>
pub fn pointee_trait(&self) -> Option<DefId>
Returns the DefId
of the pointee_trait
lang item if it is defined.
sourcepub fn metadata_type(&self) -> Option<DefId>
pub fn metadata_type(&self) -> Option<DefId>
Returns the DefId
of the metadata_type
lang item if it is defined.
sourcepub fn dyn_metadata(&self) -> Option<DefId>
pub fn dyn_metadata(&self) -> Option<DefId>
Returns the DefId
of the dyn_metadata
lang item if it is defined.
sourcepub fn freeze_trait(&self) -> Option<DefId>
pub fn freeze_trait(&self) -> Option<DefId>
Returns the DefId
of the freeze
lang item if it is defined.
sourcepub fn fn_ptr_trait(&self) -> Option<DefId>
pub fn fn_ptr_trait(&self) -> Option<DefId>
Returns the DefId
of the fn_ptr_trait
lang item if it is defined.
sourcepub fn fn_ptr_addr(&self) -> Option<DefId>
pub fn fn_ptr_addr(&self) -> Option<DefId>
Returns the DefId
of the fn_ptr_addr
lang item if it is defined.
sourcepub fn drop_trait(&self) -> Option<DefId>
pub fn drop_trait(&self) -> Option<DefId>
Returns the DefId
of the drop
lang item if it is defined.
sourcepub fn destruct_trait(&self) -> Option<DefId>
pub fn destruct_trait(&self) -> Option<DefId>
Returns the DefId
of the destruct
lang item if it is defined.
sourcepub fn async_drop_trait(&self) -> Option<DefId>
pub fn async_drop_trait(&self) -> Option<DefId>
Returns the DefId
of the async_drop
lang item if it is defined.
sourcepub fn async_destruct_trait(&self) -> Option<DefId>
pub fn async_destruct_trait(&self) -> Option<DefId>
Returns the DefId
of the async_destruct
lang item if it is defined.
sourcepub fn async_drop_in_place_fn(&self) -> Option<DefId>
pub fn async_drop_in_place_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_in_place
lang item if it is defined.
sourcepub fn surface_async_drop_in_place_fn(&self) -> Option<DefId>
pub fn surface_async_drop_in_place_fn(&self) -> Option<DefId>
Returns the DefId
of the surface_async_drop_in_place
lang item if it is defined.
sourcepub fn async_drop_surface_drop_in_place_fn(&self) -> Option<DefId>
pub fn async_drop_surface_drop_in_place_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_surface_drop_in_place
lang item if it is defined.
sourcepub fn async_drop_slice_fn(&self) -> Option<DefId>
pub fn async_drop_slice_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_slice
lang item if it is defined.
sourcepub fn async_drop_chain_fn(&self) -> Option<DefId>
pub fn async_drop_chain_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_chain
lang item if it is defined.
sourcepub fn async_drop_noop_fn(&self) -> Option<DefId>
pub fn async_drop_noop_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_noop
lang item if it is defined.
sourcepub fn async_drop_deferred_drop_in_place_fn(&self) -> Option<DefId>
pub fn async_drop_deferred_drop_in_place_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_deferred_drop_in_place
lang item if it is defined.
sourcepub fn async_drop_fuse_fn(&self) -> Option<DefId>
pub fn async_drop_fuse_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_fuse
lang item if it is defined.
sourcepub fn async_drop_defer_fn(&self) -> Option<DefId>
pub fn async_drop_defer_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_defer
lang item if it is defined.
sourcepub fn async_drop_either_fn(&self) -> Option<DefId>
pub fn async_drop_either_fn(&self) -> Option<DefId>
Returns the DefId
of the async_drop_either
lang item if it is defined.
sourcepub fn coerce_unsized_trait(&self) -> Option<DefId>
pub fn coerce_unsized_trait(&self) -> Option<DefId>
Returns the DefId
of the coerce_unsized
lang item if it is defined.
sourcepub fn dispatch_from_dyn_trait(&self) -> Option<DefId>
pub fn dispatch_from_dyn_trait(&self) -> Option<DefId>
Returns the DefId
of the dispatch_from_dyn
lang item if it is defined.
sourcepub fn transmute_opts(&self) -> Option<DefId>
pub fn transmute_opts(&self) -> Option<DefId>
Returns the DefId
of the transmute_opts
lang item if it is defined.
sourcepub fn transmute_trait(&self) -> Option<DefId>
pub fn transmute_trait(&self) -> Option<DefId>
Returns the DefId
of the transmute_trait
lang item if it is defined.
sourcepub fn add_trait(&self) -> Option<DefId>
pub fn add_trait(&self) -> Option<DefId>
Returns the DefId
of the add
lang item if it is defined.
sourcepub fn sub_trait(&self) -> Option<DefId>
pub fn sub_trait(&self) -> Option<DefId>
Returns the DefId
of the sub
lang item if it is defined.
sourcepub fn mul_trait(&self) -> Option<DefId>
pub fn mul_trait(&self) -> Option<DefId>
Returns the DefId
of the mul
lang item if it is defined.
sourcepub fn div_trait(&self) -> Option<DefId>
pub fn div_trait(&self) -> Option<DefId>
Returns the DefId
of the div
lang item if it is defined.
sourcepub fn rem_trait(&self) -> Option<DefId>
pub fn rem_trait(&self) -> Option<DefId>
Returns the DefId
of the rem
lang item if it is defined.
sourcepub fn neg_trait(&self) -> Option<DefId>
pub fn neg_trait(&self) -> Option<DefId>
Returns the DefId
of the neg
lang item if it is defined.
sourcepub fn not_trait(&self) -> Option<DefId>
pub fn not_trait(&self) -> Option<DefId>
Returns the DefId
of the not
lang item if it is defined.
sourcepub fn bitxor_trait(&self) -> Option<DefId>
pub fn bitxor_trait(&self) -> Option<DefId>
Returns the DefId
of the bitxor
lang item if it is defined.
sourcepub fn bitand_trait(&self) -> Option<DefId>
pub fn bitand_trait(&self) -> Option<DefId>
Returns the DefId
of the bitand
lang item if it is defined.
sourcepub fn bitor_trait(&self) -> Option<DefId>
pub fn bitor_trait(&self) -> Option<DefId>
Returns the DefId
of the bitor
lang item if it is defined.
sourcepub fn shl_trait(&self) -> Option<DefId>
pub fn shl_trait(&self) -> Option<DefId>
Returns the DefId
of the shl
lang item if it is defined.
sourcepub fn shr_trait(&self) -> Option<DefId>
pub fn shr_trait(&self) -> Option<DefId>
Returns the DefId
of the shr
lang item if it is defined.
sourcepub fn add_assign_trait(&self) -> Option<DefId>
pub fn add_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the add_assign
lang item if it is defined.
sourcepub fn sub_assign_trait(&self) -> Option<DefId>
pub fn sub_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the sub_assign
lang item if it is defined.
sourcepub fn mul_assign_trait(&self) -> Option<DefId>
pub fn mul_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the mul_assign
lang item if it is defined.
sourcepub fn div_assign_trait(&self) -> Option<DefId>
pub fn div_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the div_assign
lang item if it is defined.
sourcepub fn rem_assign_trait(&self) -> Option<DefId>
pub fn rem_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the rem_assign
lang item if it is defined.
sourcepub fn bitxor_assign_trait(&self) -> Option<DefId>
pub fn bitxor_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the bitxor_assign
lang item if it is defined.
sourcepub fn bitand_assign_trait(&self) -> Option<DefId>
pub fn bitand_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the bitand_assign
lang item if it is defined.
sourcepub fn bitor_assign_trait(&self) -> Option<DefId>
pub fn bitor_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the bitor_assign
lang item if it is defined.
sourcepub fn shl_assign_trait(&self) -> Option<DefId>
pub fn shl_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the shl_assign
lang item if it is defined.
sourcepub fn shr_assign_trait(&self) -> Option<DefId>
pub fn shr_assign_trait(&self) -> Option<DefId>
Returns the DefId
of the shr_assign
lang item if it is defined.
sourcepub fn index_trait(&self) -> Option<DefId>
pub fn index_trait(&self) -> Option<DefId>
Returns the DefId
of the index
lang item if it is defined.
sourcepub fn index_mut_trait(&self) -> Option<DefId>
pub fn index_mut_trait(&self) -> Option<DefId>
Returns the DefId
of the index_mut
lang item if it is defined.
sourcepub fn unsafe_cell_type(&self) -> Option<DefId>
pub fn unsafe_cell_type(&self) -> Option<DefId>
Returns the DefId
of the unsafe_cell
lang item if it is defined.
sourcepub fn va_list(&self) -> Option<DefId>
pub fn va_list(&self) -> Option<DefId>
Returns the DefId
of the va_list
lang item if it is defined.
sourcepub fn deref_trait(&self) -> Option<DefId>
pub fn deref_trait(&self) -> Option<DefId>
Returns the DefId
of the deref
lang item if it is defined.
sourcepub fn deref_mut_trait(&self) -> Option<DefId>
pub fn deref_mut_trait(&self) -> Option<DefId>
Returns the DefId
of the deref_mut
lang item if it is defined.
sourcepub fn deref_pure_trait(&self) -> Option<DefId>
pub fn deref_pure_trait(&self) -> Option<DefId>
Returns the DefId
of the deref_pure
lang item if it is defined.
sourcepub fn deref_target(&self) -> Option<DefId>
pub fn deref_target(&self) -> Option<DefId>
Returns the DefId
of the deref_target
lang item if it is defined.
sourcepub fn receiver_trait(&self) -> Option<DefId>
pub fn receiver_trait(&self) -> Option<DefId>
Returns the DefId
of the receiver
lang item if it is defined.
sourcepub fn fn_trait(&self) -> Option<DefId>
pub fn fn_trait(&self) -> Option<DefId>
Returns the DefId
of the Fn
lang item if it is defined.
sourcepub fn fn_mut_trait(&self) -> Option<DefId>
pub fn fn_mut_trait(&self) -> Option<DefId>
Returns the DefId
of the fn_mut
lang item if it is defined.
sourcepub fn fn_once_trait(&self) -> Option<DefId>
pub fn fn_once_trait(&self) -> Option<DefId>
Returns the DefId
of the fn_once
lang item if it is defined.
sourcepub fn async_fn_trait(&self) -> Option<DefId>
pub fn async_fn_trait(&self) -> Option<DefId>
Returns the DefId
of the async_fn
lang item if it is defined.
sourcepub fn async_fn_mut_trait(&self) -> Option<DefId>
pub fn async_fn_mut_trait(&self) -> Option<DefId>
Returns the DefId
of the async_fn_mut
lang item if it is defined.
sourcepub fn async_fn_once_trait(&self) -> Option<DefId>
pub fn async_fn_once_trait(&self) -> Option<DefId>
Returns the DefId
of the async_fn_once
lang item if it is defined.
sourcepub fn async_fn_once_output(&self) -> Option<DefId>
pub fn async_fn_once_output(&self) -> Option<DefId>
Returns the DefId
of the async_fn_once_output
lang item if it is defined.
sourcepub fn call_once_future(&self) -> Option<DefId>
pub fn call_once_future(&self) -> Option<DefId>
Returns the DefId
of the call_once_future
lang item if it is defined.
sourcepub fn call_ref_future(&self) -> Option<DefId>
pub fn call_ref_future(&self) -> Option<DefId>
Returns the DefId
of the call_ref_future
lang item if it is defined.
sourcepub fn async_fn_kind_helper(&self) -> Option<DefId>
pub fn async_fn_kind_helper(&self) -> Option<DefId>
Returns the DefId
of the async_fn_kind_helper
lang item if it is defined.
sourcepub fn async_fn_kind_upvars(&self) -> Option<DefId>
pub fn async_fn_kind_upvars(&self) -> Option<DefId>
Returns the DefId
of the async_fn_kind_upvars
lang item if it is defined.
sourcepub fn fn_once_output(&self) -> Option<DefId>
pub fn fn_once_output(&self) -> Option<DefId>
Returns the DefId
of the fn_once_output
lang item if it is defined.
sourcepub fn iterator_trait(&self) -> Option<DefId>
pub fn iterator_trait(&self) -> Option<DefId>
Returns the DefId
of the iterator
lang item if it is defined.
sourcepub fn fused_iterator_trait(&self) -> Option<DefId>
pub fn fused_iterator_trait(&self) -> Option<DefId>
Returns the DefId
of the fused_iterator
lang item if it is defined.
sourcepub fn future_trait(&self) -> Option<DefId>
pub fn future_trait(&self) -> Option<DefId>
Returns the DefId
of the future_trait
lang item if it is defined.
sourcepub fn future_output(&self) -> Option<DefId>
pub fn future_output(&self) -> Option<DefId>
Returns the DefId
of the future_output
lang item if it is defined.
sourcepub fn async_iterator_trait(&self) -> Option<DefId>
pub fn async_iterator_trait(&self) -> Option<DefId>
Returns the DefId
of the async_iterator
lang item if it is defined.
sourcepub fn coroutine_state(&self) -> Option<DefId>
pub fn coroutine_state(&self) -> Option<DefId>
Returns the DefId
of the coroutine_state
lang item if it is defined.
sourcepub fn coroutine_trait(&self) -> Option<DefId>
pub fn coroutine_trait(&self) -> Option<DefId>
Returns the DefId
of the coroutine
lang item if it is defined.
sourcepub fn coroutine_return(&self) -> Option<DefId>
pub fn coroutine_return(&self) -> Option<DefId>
Returns the DefId
of the coroutine_return
lang item if it is defined.
sourcepub fn coroutine_yield(&self) -> Option<DefId>
pub fn coroutine_yield(&self) -> Option<DefId>
Returns the DefId
of the coroutine_yield
lang item if it is defined.
sourcepub fn coroutine_resume(&self) -> Option<DefId>
pub fn coroutine_resume(&self) -> Option<DefId>
Returns the DefId
of the coroutine_resume
lang item if it is defined.
sourcepub fn unpin_trait(&self) -> Option<DefId>
pub fn unpin_trait(&self) -> Option<DefId>
Returns the DefId
of the unpin
lang item if it is defined.
sourcepub fn pin_type(&self) -> Option<DefId>
pub fn pin_type(&self) -> Option<DefId>
Returns the DefId
of the pin
lang item if it is defined.
sourcepub fn ordering_enum(&self) -> Option<DefId>
pub fn ordering_enum(&self) -> Option<DefId>
Returns the DefId
of the Ordering
lang item if it is defined.
sourcepub fn eq_trait(&self) -> Option<DefId>
pub fn eq_trait(&self) -> Option<DefId>
Returns the DefId
of the eq
lang item if it is defined.
sourcepub fn partial_ord_trait(&self) -> Option<DefId>
pub fn partial_ord_trait(&self) -> Option<DefId>
Returns the DefId
of the partial_ord
lang item if it is defined.
sourcepub fn c_void(&self) -> Option<DefId>
pub fn c_void(&self) -> Option<DefId>
Returns the DefId
of the c_void
lang item if it is defined.
sourcepub fn panic_fn(&self) -> Option<DefId>
pub fn panic_fn(&self) -> Option<DefId>
Returns the DefId
of the panic
lang item if it is defined.
sourcepub fn panic_nounwind(&self) -> Option<DefId>
pub fn panic_nounwind(&self) -> Option<DefId>
Returns the DefId
of the panic_nounwind
lang item if it is defined.
sourcepub fn panic_fmt(&self) -> Option<DefId>
pub fn panic_fmt(&self) -> Option<DefId>
Returns the DefId
of the panic_fmt
lang item if it is defined.
sourcepub fn const_panic_fmt(&self) -> Option<DefId>
pub fn const_panic_fmt(&self) -> Option<DefId>
Returns the DefId
of the const_panic_fmt
lang item if it is defined.
sourcepub fn panic_bounds_check_fn(&self) -> Option<DefId>
pub fn panic_bounds_check_fn(&self) -> Option<DefId>
Returns the DefId
of the panic_bounds_check
lang item if it is defined.
sourcepub fn panic_misaligned_pointer_dereference_fn(&self) -> Option<DefId>
pub fn panic_misaligned_pointer_dereference_fn(&self) -> Option<DefId>
Returns the DefId
of the panic_misaligned_pointer_dereference
lang item if it is defined.
sourcepub fn panic_info(&self) -> Option<DefId>
pub fn panic_info(&self) -> Option<DefId>
Returns the DefId
of the panic_info
lang item if it is defined.
sourcepub fn panic_location(&self) -> Option<DefId>
pub fn panic_location(&self) -> Option<DefId>
Returns the DefId
of the panic_location
lang item if it is defined.
sourcepub fn panic_impl(&self) -> Option<DefId>
pub fn panic_impl(&self) -> Option<DefId>
Returns the DefId
of the panic_impl
lang item if it is defined.
sourcepub fn panic_cannot_unwind(&self) -> Option<DefId>
pub fn panic_cannot_unwind(&self) -> Option<DefId>
Returns the DefId
of the panic_cannot_unwind
lang item if it is defined.
sourcepub fn panic_in_cleanup(&self) -> Option<DefId>
pub fn panic_in_cleanup(&self) -> Option<DefId>
Returns the DefId
of the panic_in_cleanup
lang item if it is defined.
sourcepub fn panic_const_add_overflow(&self) -> Option<DefId>
pub fn panic_const_add_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_add_overflow
lang item if it is defined.
sourcepub fn panic_const_sub_overflow(&self) -> Option<DefId>
pub fn panic_const_sub_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_sub_overflow
lang item if it is defined.
sourcepub fn panic_const_mul_overflow(&self) -> Option<DefId>
pub fn panic_const_mul_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_mul_overflow
lang item if it is defined.
sourcepub fn panic_const_div_overflow(&self) -> Option<DefId>
pub fn panic_const_div_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_div_overflow
lang item if it is defined.
sourcepub fn panic_const_rem_overflow(&self) -> Option<DefId>
pub fn panic_const_rem_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_rem_overflow
lang item if it is defined.
sourcepub fn panic_const_neg_overflow(&self) -> Option<DefId>
pub fn panic_const_neg_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_neg_overflow
lang item if it is defined.
sourcepub fn panic_const_shr_overflow(&self) -> Option<DefId>
pub fn panic_const_shr_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_shr_overflow
lang item if it is defined.
sourcepub fn panic_const_shl_overflow(&self) -> Option<DefId>
pub fn panic_const_shl_overflow(&self) -> Option<DefId>
Returns the DefId
of the panic_const_shl_overflow
lang item if it is defined.
sourcepub fn panic_const_div_by_zero(&self) -> Option<DefId>
pub fn panic_const_div_by_zero(&self) -> Option<DefId>
Returns the DefId
of the panic_const_div_by_zero
lang item if it is defined.
sourcepub fn panic_const_rem_by_zero(&self) -> Option<DefId>
pub fn panic_const_rem_by_zero(&self) -> Option<DefId>
Returns the DefId
of the panic_const_rem_by_zero
lang item if it is defined.
sourcepub fn panic_const_coroutine_resumed(&self) -> Option<DefId>
pub fn panic_const_coroutine_resumed(&self) -> Option<DefId>
Returns the DefId
of the panic_const_coroutine_resumed
lang item if it is defined.
sourcepub fn panic_const_async_fn_resumed(&self) -> Option<DefId>
pub fn panic_const_async_fn_resumed(&self) -> Option<DefId>
Returns the DefId
of the panic_const_async_fn_resumed
lang item if it is defined.
sourcepub fn panic_const_async_gen_fn_resumed(&self) -> Option<DefId>
pub fn panic_const_async_gen_fn_resumed(&self) -> Option<DefId>
Returns the DefId
of the panic_const_async_gen_fn_resumed
lang item if it is defined.
sourcepub fn panic_const_gen_fn_none(&self) -> Option<DefId>
pub fn panic_const_gen_fn_none(&self) -> Option<DefId>
Returns the DefId
of the panic_const_gen_fn_none
lang item if it is defined.
sourcepub fn panic_const_coroutine_resumed_panic(&self) -> Option<DefId>
pub fn panic_const_coroutine_resumed_panic(&self) -> Option<DefId>
Returns the DefId
of the panic_const_coroutine_resumed_panic
lang item if it is defined.
sourcepub fn panic_const_async_fn_resumed_panic(&self) -> Option<DefId>
pub fn panic_const_async_fn_resumed_panic(&self) -> Option<DefId>
Returns the DefId
of the panic_const_async_fn_resumed_panic
lang item if it is defined.
sourcepub fn panic_const_async_gen_fn_resumed_panic(&self) -> Option<DefId>
pub fn panic_const_async_gen_fn_resumed_panic(&self) -> Option<DefId>
Returns the DefId
of the panic_const_async_gen_fn_resumed_panic
lang item if it is defined.
sourcepub fn panic_const_gen_fn_none_panic(&self) -> Option<DefId>
pub fn panic_const_gen_fn_none_panic(&self) -> Option<DefId>
Returns the DefId
of the panic_const_gen_fn_none_panic
lang item if it is defined.
sourcepub fn begin_panic_fn(&self) -> Option<DefId>
pub fn begin_panic_fn(&self) -> Option<DefId>
Returns the DefId
of the begin_panic
lang item if it is defined.
sourcepub fn format_alignment(&self) -> Option<DefId>
pub fn format_alignment(&self) -> Option<DefId>
Returns the DefId
of the format_alignment
lang item if it is defined.
sourcepub fn format_argument(&self) -> Option<DefId>
pub fn format_argument(&self) -> Option<DefId>
Returns the DefId
of the format_argument
lang item if it is defined.
sourcepub fn format_arguments(&self) -> Option<DefId>
pub fn format_arguments(&self) -> Option<DefId>
Returns the DefId
of the format_arguments
lang item if it is defined.
sourcepub fn format_count(&self) -> Option<DefId>
pub fn format_count(&self) -> Option<DefId>
Returns the DefId
of the format_count
lang item if it is defined.
sourcepub fn format_placeholder(&self) -> Option<DefId>
pub fn format_placeholder(&self) -> Option<DefId>
Returns the DefId
of the format_placeholder
lang item if it is defined.
sourcepub fn format_unsafe_arg(&self) -> Option<DefId>
pub fn format_unsafe_arg(&self) -> Option<DefId>
Returns the DefId
of the format_unsafe_arg
lang item if it is defined.
sourcepub fn exchange_malloc_fn(&self) -> Option<DefId>
pub fn exchange_malloc_fn(&self) -> Option<DefId>
Returns the DefId
of the exchange_malloc
lang item if it is defined.
sourcepub fn drop_in_place_fn(&self) -> Option<DefId>
pub fn drop_in_place_fn(&self) -> Option<DefId>
Returns the DefId
of the drop_in_place
lang item if it is defined.
sourcepub fn fallback_surface_drop_fn(&self) -> Option<DefId>
pub fn fallback_surface_drop_fn(&self) -> Option<DefId>
Returns the DefId
of the fallback_surface_drop
lang item if it is defined.
sourcepub fn alloc_layout(&self) -> Option<DefId>
pub fn alloc_layout(&self) -> Option<DefId>
Returns the DefId
of the alloc_layout
lang item if it is defined.
sourcepub fn start_fn(&self) -> Option<DefId>
pub fn start_fn(&self) -> Option<DefId>
Returns the DefId
of the start
lang item if it is defined.
sourcepub fn eh_personality(&self) -> Option<DefId>
pub fn eh_personality(&self) -> Option<DefId>
Returns the DefId
of the eh_personality
lang item if it is defined.
sourcepub fn eh_catch_typeinfo(&self) -> Option<DefId>
pub fn eh_catch_typeinfo(&self) -> Option<DefId>
Returns the DefId
of the eh_catch_typeinfo
lang item if it is defined.
sourcepub fn owned_box(&self) -> Option<DefId>
pub fn owned_box(&self) -> Option<DefId>
Returns the DefId
of the owned_box
lang item if it is defined.
sourcepub fn global_alloc_ty(&self) -> Option<DefId>
pub fn global_alloc_ty(&self) -> Option<DefId>
Returns the DefId
of the global_alloc_ty
lang item if it is defined.
sourcepub fn ptr_unique(&self) -> Option<DefId>
pub fn ptr_unique(&self) -> Option<DefId>
Returns the DefId
of the ptr_unique
lang item if it is defined.
sourcepub fn phantom_data(&self) -> Option<DefId>
pub fn phantom_data(&self) -> Option<DefId>
Returns the DefId
of the phantom_data
lang item if it is defined.
sourcepub fn manually_drop(&self) -> Option<DefId>
pub fn manually_drop(&self) -> Option<DefId>
Returns the DefId
of the manually_drop
lang item if it is defined.
sourcepub fn maybe_uninit(&self) -> Option<DefId>
pub fn maybe_uninit(&self) -> Option<DefId>
Returns the DefId
of the maybe_uninit
lang item if it is defined.
sourcepub fn align_offset_fn(&self) -> Option<DefId>
pub fn align_offset_fn(&self) -> Option<DefId>
Returns the DefId
of the align_offset
lang item if it is defined.
sourcepub fn termination(&self) -> Option<DefId>
pub fn termination(&self) -> Option<DefId>
Returns the DefId
of the termination
lang item if it is defined.
sourcepub fn try_trait(&self) -> Option<DefId>
pub fn try_trait(&self) -> Option<DefId>
Returns the DefId
of the Try
lang item if it is defined.
sourcepub fn tuple_trait(&self) -> Option<DefId>
pub fn tuple_trait(&self) -> Option<DefId>
Returns the DefId
of the tuple_trait
lang item if it is defined.
sourcepub fn slice_len_fn(&self) -> Option<DefId>
pub fn slice_len_fn(&self) -> Option<DefId>
Returns the DefId
of the slice_len_fn
lang item if it is defined.
sourcepub fn from_residual_fn(&self) -> Option<DefId>
pub fn from_residual_fn(&self) -> Option<DefId>
Returns the DefId
of the from_residual
lang item if it is defined.
sourcepub fn from_output_fn(&self) -> Option<DefId>
pub fn from_output_fn(&self) -> Option<DefId>
Returns the DefId
of the from_output
lang item if it is defined.
sourcepub fn branch_fn(&self) -> Option<DefId>
pub fn branch_fn(&self) -> Option<DefId>
Returns the DefId
of the branch
lang item if it is defined.
sourcepub fn from_yeet_fn(&self) -> Option<DefId>
pub fn from_yeet_fn(&self) -> Option<DefId>
Returns the DefId
of the from_yeet
lang item if it is defined.
sourcepub fn pointer_like(&self) -> Option<DefId>
pub fn pointer_like(&self) -> Option<DefId>
Returns the DefId
of the pointer_like
lang item if it is defined.
sourcepub fn const_param_ty_trait(&self) -> Option<DefId>
pub fn const_param_ty_trait(&self) -> Option<DefId>
Returns the DefId
of the const_param_ty
lang item if it is defined.
sourcepub fn unsized_const_param_ty_trait(&self) -> Option<DefId>
pub fn unsized_const_param_ty_trait(&self) -> Option<DefId>
Returns the DefId
of the unsized_const_param_ty
lang item if it is defined.
sourcepub fn poll_ready_variant(&self) -> Option<DefId>
pub fn poll_ready_variant(&self) -> Option<DefId>
Returns the DefId
of the Ready
lang item if it is defined.
sourcepub fn poll_pending_variant(&self) -> Option<DefId>
pub fn poll_pending_variant(&self) -> Option<DefId>
Returns the DefId
of the Pending
lang item if it is defined.
sourcepub fn async_gen_ready(&self) -> Option<DefId>
pub fn async_gen_ready(&self) -> Option<DefId>
Returns the DefId
of the AsyncGenReady
lang item if it is defined.
sourcepub fn async_gen_pending(&self) -> Option<DefId>
pub fn async_gen_pending(&self) -> Option<DefId>
Returns the DefId
of the AsyncGenPending
lang item if it is defined.
sourcepub fn async_gen_finished(&self) -> Option<DefId>
pub fn async_gen_finished(&self) -> Option<DefId>
Returns the DefId
of the AsyncGenFinished
lang item if it is defined.
sourcepub fn resume_ty(&self) -> Option<DefId>
pub fn resume_ty(&self) -> Option<DefId>
Returns the DefId
of the ResumeTy
lang item if it is defined.
sourcepub fn get_context_fn(&self) -> Option<DefId>
pub fn get_context_fn(&self) -> Option<DefId>
Returns the DefId
of the get_context
lang item if it is defined.
sourcepub fn context(&self) -> Option<DefId>
pub fn context(&self) -> Option<DefId>
Returns the DefId
of the Context
lang item if it is defined.
sourcepub fn future_poll_fn(&self) -> Option<DefId>
pub fn future_poll_fn(&self) -> Option<DefId>
Returns the DefId
of the poll
lang item if it is defined.
sourcepub fn async_iterator_poll_next(&self) -> Option<DefId>
pub fn async_iterator_poll_next(&self) -> Option<DefId>
Returns the DefId
of the async_iterator_poll_next
lang item if it is defined.
sourcepub fn into_async_iter_into_iter(&self) -> Option<DefId>
pub fn into_async_iter_into_iter(&self) -> Option<DefId>
Returns the DefId
of the into_async_iter_into_iter
lang item if it is defined.
sourcepub fn option_type(&self) -> Option<DefId>
pub fn option_type(&self) -> Option<DefId>
Returns the DefId
of the Option
lang item if it is defined.
sourcepub fn option_some_variant(&self) -> Option<DefId>
pub fn option_some_variant(&self) -> Option<DefId>
Returns the DefId
of the Some
lang item if it is defined.
sourcepub fn option_none_variant(&self) -> Option<DefId>
pub fn option_none_variant(&self) -> Option<DefId>
Returns the DefId
of the None
lang item if it is defined.
sourcepub fn result_ok_variant(&self) -> Option<DefId>
pub fn result_ok_variant(&self) -> Option<DefId>
Returns the DefId
of the Ok
lang item if it is defined.
sourcepub fn result_err_variant(&self) -> Option<DefId>
pub fn result_err_variant(&self) -> Option<DefId>
Returns the DefId
of the Err
lang item if it is defined.
sourcepub fn cf_continue_variant(&self) -> Option<DefId>
pub fn cf_continue_variant(&self) -> Option<DefId>
Returns the DefId
of the Continue
lang item if it is defined.
sourcepub fn cf_break_variant(&self) -> Option<DefId>
pub fn cf_break_variant(&self) -> Option<DefId>
Returns the DefId
of the Break
lang item if it is defined.
sourcepub fn into_future_fn(&self) -> Option<DefId>
pub fn into_future_fn(&self) -> Option<DefId>
Returns the DefId
of the into_future
lang item if it is defined.
sourcepub fn into_iter_fn(&self) -> Option<DefId>
pub fn into_iter_fn(&self) -> Option<DefId>
Returns the DefId
of the into_iter
lang item if it is defined.
sourcepub fn next_fn(&self) -> Option<DefId>
pub fn next_fn(&self) -> Option<DefId>
Returns the DefId
of the next
lang item if it is defined.
sourcepub fn new_unchecked_fn(&self) -> Option<DefId>
pub fn new_unchecked_fn(&self) -> Option<DefId>
Returns the DefId
of the new_unchecked
lang item if it is defined.
sourcepub fn range_from_struct(&self) -> Option<DefId>
pub fn range_from_struct(&self) -> Option<DefId>
Returns the DefId
of the RangeFrom
lang item if it is defined.
sourcepub fn range_full_struct(&self) -> Option<DefId>
pub fn range_full_struct(&self) -> Option<DefId>
Returns the DefId
of the RangeFull
lang item if it is defined.
sourcepub fn range_inclusive_struct(&self) -> Option<DefId>
pub fn range_inclusive_struct(&self) -> Option<DefId>
Returns the DefId
of the RangeInclusive
lang item if it is defined.
sourcepub fn range_inclusive_new_method(&self) -> Option<DefId>
pub fn range_inclusive_new_method(&self) -> Option<DefId>
Returns the DefId
of the range_inclusive_new
lang item if it is defined.
sourcepub fn range_struct(&self) -> Option<DefId>
pub fn range_struct(&self) -> Option<DefId>
Returns the DefId
of the Range
lang item if it is defined.
sourcepub fn range_to_inclusive_struct(&self) -> Option<DefId>
pub fn range_to_inclusive_struct(&self) -> Option<DefId>
Returns the DefId
of the RangeToInclusive
lang item if it is defined.
sourcepub fn range_to_struct(&self) -> Option<DefId>
pub fn range_to_struct(&self) -> Option<DefId>
Returns the DefId
of the RangeTo
lang item if it is defined.
sourcepub fn string(&self) -> Option<DefId>
pub fn string(&self) -> Option<DefId>
Returns the DefId
of the String
lang item if it is defined.
sourcepub fn effects_runtime(&self) -> Option<DefId>
pub fn effects_runtime(&self) -> Option<DefId>
Returns the DefId
of the EffectsRuntime
lang item if it is defined.
sourcepub fn effects_no_runtime(&self) -> Option<DefId>
pub fn effects_no_runtime(&self) -> Option<DefId>
Returns the DefId
of the EffectsNoRuntime
lang item if it is defined.
sourcepub fn effects_maybe(&self) -> Option<DefId>
pub fn effects_maybe(&self) -> Option<DefId>
Returns the DefId
of the EffectsMaybe
lang item if it is defined.
sourcepub fn effects_intersection(&self) -> Option<DefId>
pub fn effects_intersection(&self) -> Option<DefId>
Returns the DefId
of the EffectsIntersection
lang item if it is defined.
sourcepub fn effects_intersection_output(&self) -> Option<DefId>
pub fn effects_intersection_output(&self) -> Option<DefId>
Returns the DefId
of the EffectsIntersectionOutput
lang item if it is defined.
sourcepub fn effects_compat(&self) -> Option<DefId>
pub fn effects_compat(&self) -> Option<DefId>
Returns the DefId
of the EffectsCompat
lang item if it is defined.
sourcepub fn effects_ty_compat(&self) -> Option<DefId>
pub fn effects_ty_compat(&self) -> Option<DefId>
Returns the DefId
of the EffectsTyCompat
lang item if it is defined.
Trait Implementations§
source§impl Debug for LanguageItems
impl Debug for LanguageItems
source§impl<__CTX> HashStable<__CTX> for LanguageItemswhere
__CTX: HashStableContext,
impl<__CTX> HashStable<__CTX> for LanguageItemswhere
__CTX: HashStableContext,
fn hash_stable(&self, __hcx: &mut __CTX, __hasher: &mut StableHasher)
Auto Trait Implementations§
impl DynSend for LanguageItems
impl DynSync for LanguageItems
impl Freeze for LanguageItems
impl RefUnwindSafe for LanguageItems
impl Send for LanguageItems
impl Sync for LanguageItems
impl Unpin for LanguageItems
impl UnwindSafe for LanguageItems
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
impl<'a, T> Captures<'a> for Twhere
T: ?Sized,
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: 1608 bytes