Struct rustc_lint::middle::lang_items::LanguageItems
[−]
[src]
pub struct LanguageItems {
pub items: Vec<Option<DefId>>,
pub missing: Vec<LangItem>,
}Unstable
Fields
items | Unstable |
missing | Unstable |
Methods
impl LanguageItems
fn new() -> LanguageItems
Unstable
fn items(&'a self) -> Enumerate<Iter<'a, Option<DefId>>>
Unstable
fn item_name(index: usize) -> &'static str
Unstable
fn require(&self, it: LangItem) -> Result<DefId, String>
Unstable
fn from_builtin_kind(&self, bound: BuiltinBound) -> Result<DefId, String>
Unstable
fn to_builtin_kind(&self, id: DefId) -> Option<BuiltinBound>
Unstable
fn fn_trait_kind(&self, id: DefId) -> Option<ClosureKind>
Unstable
fn char_impl(&self) -> Option<DefId>
Unstable
fn str_impl(&self) -> Option<DefId>
Unstable
fn slice_impl(&self) -> Option<DefId>
Unstable
fn const_ptr_impl(&self) -> Option<DefId>
Unstable
fn mut_ptr_impl(&self) -> Option<DefId>
Unstable
fn i8_impl(&self) -> Option<DefId>
Unstable
fn i16_impl(&self) -> Option<DefId>
Unstable
fn i32_impl(&self) -> Option<DefId>
Unstable
fn i64_impl(&self) -> Option<DefId>
Unstable
fn isize_impl(&self) -> Option<DefId>
Unstable
fn u8_impl(&self) -> Option<DefId>
Unstable
fn u16_impl(&self) -> Option<DefId>
Unstable
fn u32_impl(&self) -> Option<DefId>
Unstable
fn u64_impl(&self) -> Option<DefId>
Unstable
fn usize_impl(&self) -> Option<DefId>
Unstable
fn f32_impl(&self) -> Option<DefId>
Unstable
fn f64_impl(&self) -> Option<DefId>
Unstable
fn send_trait(&self) -> Option<DefId>
Unstable
fn sized_trait(&self) -> Option<DefId>
Unstable
fn unsize_trait(&self) -> Option<DefId>
Unstable
fn copy_trait(&self) -> Option<DefId>
Unstable
fn sync_trait(&self) -> Option<DefId>
Unstable
fn drop_trait(&self) -> Option<DefId>
Unstable
fn coerce_unsized_trait(&self) -> Option<DefId>
Unstable
fn add_trait(&self) -> Option<DefId>
Unstable
fn sub_trait(&self) -> Option<DefId>
Unstable
fn mul_trait(&self) -> Option<DefId>
Unstable
fn div_trait(&self) -> Option<DefId>
Unstable
fn rem_trait(&self) -> Option<DefId>
Unstable
fn neg_trait(&self) -> Option<DefId>
Unstable
fn not_trait(&self) -> Option<DefId>
Unstable
fn bitxor_trait(&self) -> Option<DefId>
Unstable
fn bitand_trait(&self) -> Option<DefId>
Unstable
fn bitor_trait(&self) -> Option<DefId>
Unstable
fn shl_trait(&self) -> Option<DefId>
Unstable
fn shr_trait(&self) -> Option<DefId>
Unstable
fn index_trait(&self) -> Option<DefId>
Unstable
fn index_mut_trait(&self) -> Option<DefId>
Unstable
fn range_struct(&self) -> Option<DefId>
Unstable
fn range_from_struct(&self) -> Option<DefId>
Unstable
fn range_to_struct(&self) -> Option<DefId>
Unstable
fn range_full_struct(&self) -> Option<DefId>
Unstable
fn unsafe_cell_type(&self) -> Option<DefId>
Unstable
fn deref_trait(&self) -> Option<DefId>
Unstable
fn deref_mut_trait(&self) -> Option<DefId>
Unstable
fn fn_trait(&self) -> Option<DefId>
Unstable
fn fn_mut_trait(&self) -> Option<DefId>
Unstable
fn fn_once_trait(&self) -> Option<DefId>
Unstable
fn eq_trait(&self) -> Option<DefId>
Unstable
fn ord_trait(&self) -> Option<DefId>
Unstable
fn str_eq_fn(&self) -> Option<DefId>
Unstable
fn panic_fn(&self) -> Option<DefId>
Unstable
fn panic_bounds_check_fn(&self) -> Option<DefId>
Unstable
fn panic_fmt(&self) -> Option<DefId>
Unstable
fn exchange_malloc_fn(&self) -> Option<DefId>
Unstable
fn exchange_free_fn(&self) -> Option<DefId>
Unstable
fn strdup_uniq_fn(&self) -> Option<DefId>
Unstable
fn start_fn(&self) -> Option<DefId>
Unstable
fn eh_personality(&self) -> Option<DefId>
Unstable
fn exchange_heap(&self) -> Option<DefId>
Unstable
fn owned_box(&self) -> Option<DefId>
Unstable
fn phantom_data(&self) -> Option<DefId>
Unstable
fn covariant_type(&self) -> Option<DefId>
Unstable
fn contravariant_type(&self) -> Option<DefId>
Unstable
fn invariant_type(&self) -> Option<DefId>
Unstable
fn covariant_lifetime(&self) -> Option<DefId>
Unstable
fn contravariant_lifetime(&self) -> Option<DefId>
Unstable
fn invariant_lifetime(&self) -> Option<DefId>
Unstable
fn no_copy_bound(&self) -> Option<DefId>
Unstable
fn non_zero(&self) -> Option<DefId>
Unstable
fn stack_exhausted(&self) -> Option<DefId>
Unstable
fn debug_trait(&self) -> Option<DefId>
Unstable