Skip to main content

LangItem

Enum LangItem 

Source
pub enum LangItem {
Show 234 variants Sized, MetaSized, PointeeSized, Unsize, StructuralPeq, StructuralTeq, Copy, UseCloned, Clone, TrivialClone, Sync, DiscriminantKind, Discriminant, PointeeTrait, Metadata, DynMetadata, Freeze, NonNull, FnPtrTrait, FnPtrAsPtr, FnPtrFromPtr, Drop, Destruct, BikeshedGuaranteedNoDrop, CoerceUnsized, DispatchFromDyn, Reborrow, CoerceShared, TransmuteOpts, TransmuteTrait, 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, UnsafePinned, VaList, Deref, DerefMut, DerefPure, DerefTarget, Receiver, ReceiverTarget, Fn, FnMut, FnOnce, AsyncFn, AsyncFnMut, AsyncFnOnce, AsyncFnKindHelper, AsyncFnKindUpvars, CallRefFuture, CallOnceFuture, AsyncFnOnceOutput, FnOnceOutput, Future, AsyncIterator, CoroutineState, Coroutine, CoroutineReturn, CoroutineYield, Unpin, Pin, PartialEq, PartialOrd, CVoid, Panic, PanicNounwind, PanicFmt, PanicDisplay, ConstPanicFmt, PanicBoundsCheck, PanicMisalignedPointerDereference, PanicInfo, PanicLocation, PanicImpl, PanicCannotUnwind, PanicNullPointerDereference, BeginPanic, FormatAlignment, FormatArgument, FormatArguments, FormatCount, FormatPlaceholder, FormatUnsafeArg, ExchangeMalloc, BoxFree, DropInPlace, AllocLayout, Start, EhPersonality, EhCatchTypeinfo, OwnedBox, PhantomData, ManuallyDrop, MaybeUninit, AlignOffset, Termination, Try, Tuple, SliceLen, TryTraitFromResidual, TryTraitFromOutput, TryTraitBranch, TryTraitFromYeet, ResidualIntoTryType, PointerLike, ConstParamTy, Poll, PollReady, PollPending, ResumeTy, GetContext, Context, FuturePoll, FutureOutput, Option, OptionSome, OptionNone, ResultOk, ResultErr, ControlFlowContinue, ControlFlowBreak, IntoFutureIntoFuture, IntoIterIntoIter, IteratorNext, Iterator, FusedIterator, PinNewUnchecked, RangeFrom, RangeFull, RangeInclusiveStruct, RangeInclusiveNew, Range, RangeToInclusive, RangeTo, RangeFromCopy, RangeInclusiveCopy, RangeCopy, RangeToInclusiveCopy, String, CStr, Ordering, Field, FieldBase, FieldType, RangeMin, RangeMax, RangeSub, Default, Debug, Hash, Ord, Eq, DefaultDerive, DebugDerive, HashDerive, PartialOrdDerive, OrdDerive, PartialEqDerive, EqDerive, CoercePointeeDerive, CoerceSharedDerive, CopyDerive, ReborrowDerive, CloneDerive, IntoFuture, IntoFutureOutput, IntoIterator, IntoIteratorItem, IntoIterIntoIterType, IteratorItem, AsyncIteratorItem, Fn_call, FnMut_call_mut, FnOnce_call_once, AsyncFn_async_call, AsyncFnMut_async_call_mut, AsyncFnOnce_async_call_once, Not_not, Neg_neg, Add_add, Mul_mul, Sub_sub, Div_div, Rem_rem, Shl_shl, Shr_shr, BitXor_bitxor, BitOr_bitor, BitAnd_bitand, AddAssign_add_assign, MulAssign_mul_assign, SubAssign_sub_assign, DivAssign_div_assign, RemAssign_rem_assign, ShlAssign_shl_assign, ShrAssign_shr_assign, BitXorAssign_bitxor_assign, BitOrAssign_bitor_assign, BitAndAssign_bitand_assign, PartialEq_eq, PartialEq_ne, PartialOrd_le, PartialOrd_lt, PartialOrd_ge, PartialOrd_gt, Drop_drop, Drop_pin_drop, Debug_fmt, Deref_deref, DerefMut_deref_mut, Index_index, IndexMut_index_mut,
}

Variants§

§

Sized

§

MetaSized

§

PointeeSized

§

Unsize

§

StructuralPeq

Trait injected by #[derive(PartialEq)], (i.e. “Partial EQ”).

§

StructuralTeq

Trait injected by #[derive(Eq)], (i.e. “Total EQ”; no, I will not apologize).

§

Copy

§

UseCloned

§

Clone

§

TrivialClone

§

Sync

§

DiscriminantKind

§

Discriminant

The associated item of the DiscriminantKind trait.

§

PointeeTrait

§

Metadata

§

DynMetadata

§

Freeze

§

NonNull

§

FnPtrTrait

§

FnPtrAsPtr

§

FnPtrFromPtr

§

Drop

§

Destruct

§

BikeshedGuaranteedNoDrop

§

CoerceUnsized

§

DispatchFromDyn

§

Reborrow

§

CoerceShared

§

TransmuteOpts

§

TransmuteTrait

§

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

§

UnsafePinned

§

VaList

§

Deref

§

DerefMut

§

DerefPure

§

DerefTarget

§

Receiver

§

ReceiverTarget

§

Fn

§

FnMut

§

FnOnce

§

AsyncFn

§

AsyncFnMut

§

AsyncFnOnce

§

AsyncFnKindHelper

§

AsyncFnKindUpvars

§

CallRefFuture

§

CallOnceFuture

§

AsyncFnOnceOutput

§

FnOnceOutput

§

Future

§

AsyncIterator

§

CoroutineState

§

Coroutine

§

CoroutineReturn

§

CoroutineYield

§

Unpin

§

Pin

§

PartialEq

§

PartialOrd

§

CVoid

§

Panic

§

PanicNounwind

§

PanicFmt

§

PanicDisplay

§

ConstPanicFmt

§

PanicBoundsCheck

§

PanicMisalignedPointerDereference

§

PanicInfo

§

PanicLocation

§

PanicImpl

§

PanicCannotUnwind

§

PanicNullPointerDereference

§

BeginPanic

libstd panic entry point. Necessary for const eval to be able to catch it

§

FormatAlignment

§

FormatArgument

§

FormatArguments

§

FormatCount

§

FormatPlaceholder

§

FormatUnsafeArg

§

ExchangeMalloc

§

BoxFree

§

DropInPlace

§

AllocLayout

§

Start

§

EhPersonality

§

EhCatchTypeinfo

§

OwnedBox

§

PhantomData

§

ManuallyDrop

§

MaybeUninit

§

AlignOffset

Align offset for stride != 1; must not panic.

§

Termination

§

Try

§

Tuple

§

SliceLen

§

TryTraitFromResidual

§

TryTraitFromOutput

§

TryTraitBranch

§

TryTraitFromYeet

§

ResidualIntoTryType

§

PointerLike

§

ConstParamTy

§

Poll

§

PollReady

§

PollPending

§

ResumeTy

§

GetContext

§

Context

§

FuturePoll

§

FutureOutput

§

Option

§

OptionSome

§

OptionNone

§

ResultOk

§

ResultErr

§

ControlFlowContinue

§

ControlFlowBreak

§

IntoFutureIntoFuture

§

IntoIterIntoIter

§

IteratorNext

§

Iterator

§

FusedIterator

§

PinNewUnchecked

§

RangeFrom

§

RangeFull

§

RangeInclusiveStruct

§

RangeInclusiveNew

§

Range

§

RangeToInclusive

§

RangeTo

§

RangeFromCopy

§

RangeInclusiveCopy

§

RangeCopy

§

RangeToInclusiveCopy

§

String

§

CStr

§

Ordering

§

Field

§

FieldBase

§

FieldType

§

RangeMin

§

RangeMax

§

RangeSub

§

Default

§

Debug

§

Hash

§

Ord

§

Eq

§

DefaultDerive

§

DebugDerive

§

HashDerive

§

PartialOrdDerive

§

OrdDerive

§

PartialEqDerive

§

EqDerive

§

CoercePointeeDerive

§

CoerceSharedDerive

§

CopyDerive

§

ReborrowDerive

§

CloneDerive

§

IntoFuture

§

IntoFutureOutput

§

IntoIterator

§

IntoIteratorItem

§

IntoIterIntoIterType

§

IteratorItem

§

AsyncIteratorItem

§

Fn_call

§

FnMut_call_mut

§

FnOnce_call_once

§

AsyncFn_async_call

§

AsyncFnMut_async_call_mut

§

AsyncFnOnce_async_call_once

§

Not_not

§

Neg_neg

§

Add_add

§

Mul_mul

§

Sub_sub

§

Div_div

§

Rem_rem

§

Shl_shl

§

Shr_shr

§

BitXor_bitxor

§

BitOr_bitor

§

BitAnd_bitand

§

AddAssign_add_assign

§

MulAssign_mul_assign

§

SubAssign_sub_assign

§

DivAssign_div_assign

§

RemAssign_rem_assign

§

ShlAssign_shl_assign

§

ShrAssign_shr_assign

§

BitXorAssign_bitxor_assign

§

BitOrAssign_bitor_assign

§

BitAndAssign_bitand_assign

§

PartialEq_eq

§

PartialEq_ne

§

PartialOrd_le

§

PartialOrd_lt

§

PartialOrd_ge

§

PartialOrd_gt

§

Drop_drop

§

Drop_pin_drop

§

Debug_fmt

§

Deref_deref

§

DerefMut_deref_mut

§

Index_index

§

IndexMut_index_mut

Implementations§

Trait Implementations§

Source§

impl Clone for LangItemEnum

Source§

fn clone(&self) -> LangItemEnum

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for LangItemEnum

Source§

impl Debug for LangItemEnum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for LangItemEnum

Source§

impl Hash for LangItemEnum

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for LangItemEnum

Source§

fn eq(&self, other: &LangItemEnum) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LangItemEnum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T, R> CollectAndApply<T, R> for T

§

fn collect_and_apply<I, F>(iter: I, f: F) -> R
where I: Iterator<Item = T>, F: FnOnce(&[T]) -> R,

Equivalent to f(&iter.collect::<Vec<_>>()).

§

type Output = R

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> HashEqLike<&T> for T
where T: Hash + Eq,

§

fn eq(&self, data: &&T) -> bool

§

impl<T> HashEqLike<Cow<'_, T>> for T
where T: Hash + Eq + Clone,

§

fn eq(&self, data: &Cow<'_, T>) -> bool

§

impl<T> HashEqLike<T> for T
where T: Hash + Eq,

§

fn eq(&self, data: &T) -> bool

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> IntoBox<dyn Any + Send + Sync> for T
where T: Any + Send + Sync,

§

fn into_box(self) -> Box<dyn Any + Send + Sync>

Convert self into the appropriate boxed form.
§

impl<T> IntoBox<dyn Any + Send> for T
where T: Any + Send,

§

fn into_box(self) -> Box<dyn Any + Send>

Convert self into the appropriate boxed form.
§

impl<T> IntoBox<dyn Any> for T
where T: Any,

§

fn into_box(self) -> Box<dyn Any>

Convert self into the appropriate boxed form.
Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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 more
§

impl<T> Lookup<T> for T

§

fn into_owned(self) -> T

§

impl<T> Pointable for T

§

const ALIGN: usize

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<I, T, U> Upcast<I, U> for T
where U: UpcastFrom<I, T>,

§

fn upcast(self, interner: I) -> U

§

impl<I, T> UpcastFrom<I, T> for T

§

fn upcast_from(from: T, _tcx: I) -> T

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more