Enum rustc_hir::lang_items::LangItem [−][src]
pub enum LangItem {
Show variants
Bool,
Char,
Str,
Array,
Slice,
SliceU8,
StrAlloc,
SliceAlloc,
SliceU8Alloc,
ConstPtr,
MutPtr,
ConstSlicePtr,
MutSlicePtr,
I8,
I16,
I32,
I64,
I128,
Isize,
U8,
U16,
U32,
U64,
U128,
Usize,
F32,
F64,
F32Runtime,
F64Runtime,
Sized,
Unsize,
StructuralPeq,
StructuralTeq,
Copy,
Clone,
Sync,
DiscriminantKind,
Discriminant,
PointeeTrait,
Metadata,
DynMetadata,
Freeze,
Drop,
CoerceUnsized,
DispatchFromDyn,
Add,
Sub,
Mul,
Div,
Rem,
Neg,
Not,
BitXor,
BitAnd,
BitOr,
Shl,
Shr,
AddAssign,
SubAssign,
MulAssign,
DivAssign,
RemAssign,
BitXorAssign,
BitAndAssign,
BitOrAssign,
ShlAssign,
ShrAssign,
Index,
IndexMut,
UnsafeCell,
VaList,
Deref,
DerefMut,
DerefTarget,
Receiver,
Fn,
FnMut,
FnOnce,
FnOnceOutput,
Future,
GeneratorState,
Generator,
Unpin,
Pin,
PartialEq,
PartialOrd,
Panic,
PanicStr,
PanicBoundsCheck,
PanicInfo,
PanicLocation,
PanicImpl,
BeginPanic,
ExchangeMalloc,
BoxFree,
DropInPlace,
Oom,
AllocLayout,
Start,
EhPersonality,
EhCatchTypeinfo,
OwnedBox,
PhantomData,
ManuallyDrop,
MaybeUninit,
AlignOffset,
Termination,
Try,
TryFromError,
TryFromOk,
TryIntoResult,
PollReady,
PollPending,
FromGenerator,
GetContext,
FuturePoll,
FromFrom,
OptionSome,
OptionNone,
ResultOk,
ResultErr,
IntoIterIntoIter,
IteratorNext,
PinNewUnchecked,
RangeFrom,
RangeFull,
RangeInclusiveStruct,
RangeInclusiveNew,
Range,
RangeToInclusive,
RangeTo,
}Expand description
A representation of all the valid language items in Rust.
Variants
Expand description
The bool lang item.
Expand description
The char lang item.
Expand description
The str lang item.
Expand description
The array lang item.
Expand description
The slice lang item.
Expand description
The slice_u8 lang item.
Expand description
The str_alloc lang item.
Expand description
The slice_alloc lang item.
Expand description
The slice_u8_alloc lang item.
Expand description
The const_ptr lang item.
Expand description
The mut_ptr lang item.
Expand description
The const_slice_ptr lang item.
Expand description
The mut_slice_ptr lang item.
Expand description
The i8 lang item.
Expand description
The i16 lang item.
Expand description
The i32 lang item.
Expand description
The i64 lang item.
Expand description
The i128 lang item.
Expand description
The isize lang item.
Expand description
The u8 lang item.
Expand description
The u16 lang item.
Expand description
The u32 lang item.
Expand description
The u64 lang item.
Expand description
The u128 lang item.
Expand description
The usize lang item.
Expand description
The f32 lang item.
Expand description
The f64 lang item.
Expand description
The f32_runtime lang item.
Expand description
The f64_runtime lang item.
Expand description
The sized lang item.
Expand description
The unsize lang item.
Expand description
The structural_peq lang item.
Trait injected by #[derive(PartialEq)], (i.e. “Partial EQ”).
Expand description
The structural_teq lang item.
Trait injected by #[derive(Eq)], (i.e. “Total EQ”; no, I will not apologize).
Expand description
The copy lang item.
Expand description
The clone lang item.
Expand description
The sync lang item.
Expand description
The discriminant_kind lang item.
Expand description
The discriminant_type lang item.
The associated item of the [DiscriminantKind] trait.
Expand description
The pointee_trait lang item.
Expand description
The metadata_type lang item.
Expand description
The dyn_metadata lang item.
Expand description
The freeze lang item.
Expand description
The drop lang item.
Expand description
The coerce_unsized lang item.
Expand description
The dispatch_from_dyn lang item.
Expand description
The add lang item.
Expand description
The sub lang item.
Expand description
The mul lang item.
Expand description
The div lang item.
Expand description
The rem lang item.
Expand description
The neg lang item.
Expand description
The not lang item.
Expand description
The bitxor lang item.
Expand description
The bitand lang item.
Expand description
The bitor lang item.
Expand description
The shl lang item.
Expand description
The shr lang item.
Expand description
The add_assign lang item.
Expand description
The sub_assign lang item.
Expand description
The mul_assign lang item.
Expand description
The div_assign lang item.
Expand description
The rem_assign lang item.
Expand description
The bitxor_assign lang item.
Expand description
The bitand_assign lang item.
Expand description
The bitor_assign lang item.
Expand description
The shl_assign lang item.
Expand description
The shr_assign lang item.
Expand description
The index lang item.
Expand description
The index_mut lang item.
Expand description
The unsafe_cell lang item.
Expand description
The va_list lang item.
Expand description
The deref lang item.
Expand description
The deref_mut lang item.
Expand description
The deref_target lang item.
Expand description
The receiver lang item.
Expand description
The Fn lang item.
Expand description
The fn_mut lang item.
Expand description
The fn_once lang item.
Expand description
The fn_once_output lang item.
Expand description
The future_trait lang item.
Expand description
The generator_state lang item.
Expand description
The generator lang item.
Expand description
The unpin lang item.
Expand description
The pin lang item.
Expand description
The eq lang item.
Expand description
The partial_ord lang item.
Expand description
The panic lang item.
Expand description
The panic_str lang item.
Expand description
The panic_bounds_check lang item.
Expand description
The panic_info lang item.
Expand description
The panic_location lang item.
Expand description
The panic_impl lang item.
Expand description
The begin_panic lang item.
libstd panic entry point. Necessary for const eval to be able to catch it
Expand description
The exchange_malloc lang item.
Expand description
The box_free lang item.
Expand description
The drop_in_place lang item.
Expand description
The oom lang item.
Expand description
The alloc_layout lang item.
Expand description
The start lang item.
Expand description
The eh_personality lang item.
Expand description
The eh_catch_typeinfo lang item.
Expand description
The owned_box lang item.
Expand description
The phantom_data lang item.
Expand description
The manually_drop lang item.
Expand description
The maybe_uninit lang item.
Expand description
The align_offset lang item.
Align offset for stride != 1; must not panic.
Expand description
The termination lang item.
Expand description
The Try lang item.
Expand description
The from_error lang item.
Expand description
The from_ok lang item.
Expand description
The into_result lang item.
Expand description
The Ready lang item.
Expand description
The Pending lang item.
Expand description
The from_generator lang item.
Expand description
The get_context lang item.
Expand description
The poll lang item.
Expand description
The from lang item.
Expand description
The Some lang item.
Expand description
The None lang item.
Expand description
The Ok lang item.
Expand description
The Err lang item.
Expand description
The into_iter lang item.
Expand description
The next lang item.
Expand description
The new_unchecked lang item.
Expand description
The RangeFrom lang item.
Expand description
The RangeFull lang item.
Expand description
The RangeInclusive lang item.
Expand description
The range_inclusive_new lang item.
Expand description
The Range lang item.
Expand description
The RangeToInclusive lang item.
Expand description
The RangeTo lang item.
Implementations
impl LangItem[src]
impl LangItem[src]pub fn name(self) -> Symbol[src]
pub fn name(self) -> Symbol[src]Returns the name symbol in #[lang = "$name"].
For example, LangItem::PartialEq.name()
would result in sym::eq since it is #[lang = "eq"].
pub fn group(self) -> Option<LangItemGroup>[src]
pub fn group(self) -> Option<LangItemGroup>[src]The group that this lang item belongs to,
or None if it doesn’t belong to a group.
Trait Implementations
impl<CTX> HashStable<CTX> for LangItem[src]
impl<CTX> HashStable<CTX> for LangItem[src]fn hash_stable(&self, _: &mut CTX, hasher: &mut StableHasher)[src]
impl Copy for LangItem[src]
impl Eq for LangItem[src]
impl StructuralEq for LangItem[src]
impl StructuralPartialEq for LangItem[src]
Auto Trait Implementations
impl RefUnwindSafe for LangItem
impl Send for LangItem
impl Sync for LangItem
impl Unpin for LangItem
impl UnwindSafe for LangItem
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more