Skip to main content

LangItemKind

Enum LangItemKind 

Source
#[repr(u16)]
pub enum LangItemKind {
Show 113 variants Sized = 0, Copy = 1, Clone = 2, Sync = 3, Freeze = 4, Unpin = 5, Drop = 6, Tuple = 7, FnPtrTrait = 8, Option = 9, OptionSome = 10, OptionNone = 11, Result = 12, ResultOk = 13, ResultErr = 14, ControlFlow = 15, ControlFlowContinue = 16, ControlFlowBreak = 17, Poll = 18, PollReady = 19, PollPending = 20, Pin = 21, OwnedBox = 22, String = 23, ManuallyDrop = 24, MaybeUninit = 25, UnsafeCell = 26, PhantomData = 27, RangeFull = 28, Range = 29, RangeFrom = 30, RangeTo = 31, RangeInclusive = 32, RangeToInclusive = 33, Try = 34, TryOutput = 35, TryResidual = 36, TryBranch = 37, TryFromOutput = 38, FromResidual = 39, FromResidualFn = 40, Residual = 41, ResidualTryType = 42, Fn = 43, FnCall = 44, FnMut = 45, FnMutCallMut = 46, FnOnce = 47, FnOnceCallOnce = 48, FnOnceOutput = 49, AsyncFn = 50, AsyncFnCall = 51, AsyncFnMut = 52, AsyncFnMutCallMut = 53, AsyncFnOnce = 54, AsyncFnOnceCallOnce = 55, AsyncFnOnceOutput = 56, CallOnceFuture = 57, CallRefFuture = 58, Deref = 59, DerefTarget = 60, DerefFn = 61, DerefMut = 62, DerefMutFn = 63, Receiver = 64, ReceiverTarget = 65, Index = 66, IndexOutput = 67, IndexFn = 68, IndexMut = 69, IndexMutFn = 70, Iterator = 71, IteratorItem = 72, IteratorNext = 73, IntoIterator = 74, IntoIteratorItem = 75, IntoIteratorIntoIter = 76, IntoIteratorIntoIterFn = 77, Future = 78, FutureOutput = 79, FuturePoll = 80, IntoFuture = 81, IntoFutureOutput = 82, IntoFutureIntoFuture = 83, IntoFutureIntoFutureFn = 84, AsyncIterator = 85, AsyncIteratorPollNext = 86, Add = 87, Sub = 88, Mul = 89, Div = 90, Rem = 91, Neg = 92, Not = 93, BitXor = 94, BitAnd = 95, BitOr = 96, Shl = 97, Shr = 98, AddAssign = 99, SubAssign = 100, MulAssign = 101, DivAssign = 102, RemAssign = 103, BitXorAssign = 104, BitAndAssign = 105, BitOrAssign = 106, ShlAssign = 107, ShrAssign = 108, PartialEq = 109, PartialOrd = 110, From = 111, Other = 65_535,
}
Expand description

Canonical compiler #[lang = "..."] item (and associated trait item) identifier.

Variants§

§

Sized = 0

§

Copy = 1

§

Clone = 2

§

Sync = 3

§

Freeze = 4

§

Unpin = 5

§

Drop = 6

§

Tuple = 7

§

FnPtrTrait = 8

§

Option = 9

§

OptionSome = 10

§

OptionNone = 11

§

Result = 12

§

ResultOk = 13

§

ResultErr = 14

§

ControlFlow = 15

§

ControlFlowContinue = 16

§

ControlFlowBreak = 17

§

Poll = 18

§

PollReady = 19

§

PollPending = 20

§

Pin = 21

§

OwnedBox = 22

§

String = 23

§

ManuallyDrop = 24

§

MaybeUninit = 25

§

UnsafeCell = 26

§

PhantomData = 27

§

RangeFull = 28

§

Range = 29

§

RangeFrom = 30

§

RangeTo = 31

§

RangeInclusive = 32

§

RangeToInclusive = 33

§

Try = 34

§

TryOutput = 35

§

TryResidual = 36

§

TryBranch = 37

§

TryFromOutput = 38

§

FromResidual = 39

§

FromResidualFn = 40

§

Residual = 41

§

ResidualTryType = 42

§

Fn = 43

§

FnCall = 44

§

FnMut = 45

§

FnMutCallMut = 46

§

FnOnce = 47

§

FnOnceCallOnce = 48

§

FnOnceOutput = 49

§

AsyncFn = 50

§

AsyncFnCall = 51

§

AsyncFnMut = 52

§

AsyncFnMutCallMut = 53

§

AsyncFnOnce = 54

§

AsyncFnOnceCallOnce = 55

§

AsyncFnOnceOutput = 56

§

CallOnceFuture = 57

§

CallRefFuture = 58

§

Deref = 59

§

DerefTarget = 60

§

DerefFn = 61

§

DerefMut = 62

§

DerefMutFn = 63

§

Receiver = 64

§

ReceiverTarget = 65

§

Index = 66

§

IndexOutput = 67

§

IndexFn = 68

§

IndexMut = 69

§

IndexMutFn = 70

§

Iterator = 71

§

IteratorItem = 72

§

IteratorNext = 73

§

IntoIterator = 74

§

IntoIteratorItem = 75

§

IntoIteratorIntoIter = 76

§

IntoIteratorIntoIterFn = 77

§

Future = 78

§

FutureOutput = 79

§

FuturePoll = 80

§

IntoFuture = 81

§

IntoFutureOutput = 82

§

IntoFutureIntoFuture = 83

§

IntoFutureIntoFutureFn = 84

§

AsyncIterator = 85

§

AsyncIteratorPollNext = 86

§

Add = 87

§

Sub = 88

§

Mul = 89

§

Div = 90

§

Rem = 91

§

Neg = 92

§

Not = 93

§

BitXor = 94

§

BitAnd = 95

§

BitOr = 96

§

Shl = 97

§

Shr = 98

§

AddAssign = 99

§

SubAssign = 100

§

MulAssign = 101

§

DivAssign = 102

§

RemAssign = 103

§

BitXorAssign = 104

§

BitAndAssign = 105

§

BitOrAssign = 106

§

ShlAssign = 107

§

ShrAssign = 108

§

PartialEq = 109

§

PartialOrd = 110

§

From = 111

§

Other = 65_535

Implementations§

Source§

impl LangItemKind

Source

pub const KNOWN_MAX: u16 = 111

Source

pub const fn from_u16(v: u16) -> Self

Trait Implementations§

Source§

impl Clone for LangItemKind

Source§

fn clone(&self) -> Self

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 LangItemKind

Source§

impl Debug for LangItemKind

Source§

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

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

impl Eq for LangItemKind

Source§

impl Hash for LangItemKind

Source§

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

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 Ord for LangItemKind

Source§

fn cmp(&self, other: &Self) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

fn clamp_to<R>(self, range: R) -> Self
where Self: Sized, R: ClampBounds<Self>,

🔬This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range. Read more
Source§

impl PartialEq for LangItemKind

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl PartialOrd for LangItemKind

Source§

fn partial_cmp(&self, other: &Self) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for LangItemKind

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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.

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 = !

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

fn try_from(value: U) -> Result<T, !>

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.