Struct rustc::middle::lang_items::LanguageItems [] [src]

pub struct LanguageItems {
    pub items: Vec<Option<DefId>>,
    pub missing: Vec<LangItem>,
}
Unstable (rustc_private)

Fields

items: Vec<Option<DefId>>
Unstable (rustc_private)
missing: Vec<LangItem>
Unstable (rustc_private)

Methods

impl LanguageItems
[src]

fn new() -> LanguageItems

fn items(&self) -> &[Option<DefId>]

fn item_name(index: usize) -> &'static str

fn require(&self, it: LangItem) -> Result<DefIdString>

fn require_owned_box(&self) -> Result<DefIdString>

fn from_builtin_kind(&self, bound: BuiltinBound) -> Result<DefIdString>

fn to_builtin_kind(&self, id: DefId) -> Option<BuiltinBound>

fn fn_trait_kind(&self, id: DefId) -> Option<ClosureKind>

fn char_impl(&self) -> Option<DefId>

fn str_impl(&self) -> Option<DefId>

fn slice_impl(&self) -> Option<DefId>

fn const_ptr_impl(&self) -> Option<DefId>

fn mut_ptr_impl(&self) -> Option<DefId>

fn i8_impl(&self) -> Option<DefId>

fn i16_impl(&self) -> Option<DefId>

fn i32_impl(&self) -> Option<DefId>

fn i64_impl(&self) -> Option<DefId>

fn isize_impl(&self) -> Option<DefId>

fn u8_impl(&self) -> Option<DefId>

fn u16_impl(&self) -> Option<DefId>

fn u32_impl(&self) -> Option<DefId>

fn u64_impl(&self) -> Option<DefId>

fn usize_impl(&self) -> Option<DefId>

fn f32_impl(&self) -> Option<DefId>

fn f64_impl(&self) -> Option<DefId>

fn send_trait(&self) -> Option<DefId>

fn sized_trait(&self) -> Option<DefId>

fn unsize_trait(&self) -> Option<DefId>

fn copy_trait(&self) -> Option<DefId>

fn sync_trait(&self) -> Option<DefId>

fn drop_trait(&self) -> Option<DefId>

fn coerce_unsized_trait(&self) -> Option<DefId>

fn add_trait(&self) -> Option<DefId>

fn sub_trait(&self) -> Option<DefId>

fn mul_trait(&self) -> Option<DefId>

fn div_trait(&self) -> Option<DefId>

fn rem_trait(&self) -> Option<DefId>

fn neg_trait(&self) -> Option<DefId>

fn not_trait(&self) -> Option<DefId>

fn bitxor_trait(&self) -> Option<DefId>

fn bitand_trait(&self) -> Option<DefId>

fn bitor_trait(&self) -> Option<DefId>

fn shl_trait(&self) -> Option<DefId>

fn shr_trait(&self) -> Option<DefId>

fn add_assign_trait(&self) -> Option<DefId>

fn sub_assign_trait(&self) -> Option<DefId>

fn mul_assign_trait(&self) -> Option<DefId>

fn div_assign_trait(&self) -> Option<DefId>

fn rem_assign_trait(&self) -> Option<DefId>

fn bitxor_assign_trait(&self) -> Option<DefId>

fn bitand_assign_trait(&self) -> Option<DefId>

fn bitor_assign_trait(&self) -> Option<DefId>

fn shl_assign_trait(&self) -> Option<DefId>

fn shr_assign_trait(&self) -> Option<DefId>

fn index_trait(&self) -> Option<DefId>

fn index_mut_trait(&self) -> Option<DefId>

fn unsafe_cell_type(&self) -> Option<DefId>

fn deref_trait(&self) -> Option<DefId>

fn deref_mut_trait(&self) -> Option<DefId>

fn fn_trait(&self) -> Option<DefId>

fn fn_mut_trait(&self) -> Option<DefId>

fn fn_once_trait(&self) -> Option<DefId>

fn eq_trait(&self) -> Option<DefId>

fn ord_trait(&self) -> Option<DefId>

fn str_eq_fn(&self) -> Option<DefId>

fn panic_fn(&self) -> Option<DefId>

fn panic_bounds_check_fn(&self) -> Option<DefId>

fn panic_fmt(&self) -> Option<DefId>

fn exchange_malloc_fn(&self) -> Option<DefId>

fn exchange_free_fn(&self) -> Option<DefId>

fn box_free_fn(&self) -> Option<DefId>

fn strdup_uniq_fn(&self) -> Option<DefId>

fn start_fn(&self) -> Option<DefId>

fn eh_personality(&self) -> Option<DefId>

fn eh_personality_catch(&self) -> Option<DefId>

fn eh_unwind_resume(&self) -> Option<DefId>

fn msvc_try_filter(&self) -> Option<DefId>

fn owned_box(&self) -> Option<DefId>

fn phantom_data(&self) -> Option<DefId>

fn covariant_type(&self) -> Option<DefId>

fn contravariant_type(&self) -> Option<DefId>

fn invariant_type(&self) -> Option<DefId>

fn covariant_lifetime(&self) -> Option<DefId>

fn contravariant_lifetime(&self) -> Option<DefId>

fn invariant_lifetime(&self) -> Option<DefId>

fn no_copy_bound(&self) -> Option<DefId>

fn non_zero(&self) -> Option<DefId>

fn debug_trait(&self) -> Option<DefId>