Enum CallingConvention

Source
#[non_exhaustive]
#[repr(u64)]
pub enum CallingConvention {
Show 42 variants C = 0, Fast = 8, Cold = 9, GHC = 10, HiPE = 11, WebKitJS = 12, AnyReg = 13, PreserveMost = 14, PreserveAll = 15, Swift = 16, CXXFASTTLS = 17, X86Stdcall = 64, X86Fastcall = 65, ARMAPCS = 66, ARMAAPCS = 67, ARMAAPCSVFP = 68, MSP430INTR = 69, X86ThisCall = 70, PTXKernel = 71, PTXDevice = 72, SPIRFUNC = 75, SPIRKERNEL = 76, IntelOCLBI = 77, X8664SysV = 78, Win64 = 79, X86VectorCall = 80, HHVM = 81, HHVMC = 82, X86INTR = 83, AVRINTR = 84, AVRSIGNAL = 85, AVRBUILTIN = 86, AMDGPUVS = 87, AMDGPUGS = 88, AMDGPUPS = 89, AMDGPUCS = 90, AMDGPUKERNEL = 91, X86RegCall = 92, AMDGPUHS = 93, MSP430BUILTIN = 94, AMDGPULS = 95, AMDGPUES = 96,
}
Expand description

Calling conventions supported by LLVM.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

C = 0

§

Fast = 8

§

Cold = 9

§

GHC = 10

§

HiPE = 11

§

WebKitJS = 12

§

AnyReg = 13

§

PreserveMost = 14

§

PreserveAll = 15

§

Swift = 16

§

CXXFASTTLS = 17

§

X86Stdcall = 64

§

X86Fastcall = 65

§

ARMAPCS = 66

§

ARMAAPCS = 67

§

ARMAAPCSVFP = 68

§

MSP430INTR = 69

§

X86ThisCall = 70

§

PTXKernel = 71

§

PTXDevice = 72

§

SPIRFUNC = 75

§

SPIRKERNEL = 76

§

IntelOCLBI = 77

§

X8664SysV = 78

§

Win64 = 79

§

X86VectorCall = 80

§

HHVM = 81

§

HHVMC = 82

§

X86INTR = 83

§

AVRINTR = 84

§

AVRSIGNAL = 85

§

AVRBUILTIN = 86

§

AMDGPUVS = 87

§

AMDGPUGS = 88

§

AMDGPUPS = 89

§

AMDGPUCS = 90

§

AMDGPUKERNEL = 91

§

X86RegCall = 92

§

AMDGPUHS = 93

§

MSP430BUILTIN = 94

§

AMDGPULS = 95

§

AMDGPUES = 96

Trait Implementations§

Source§

impl Debug for CallingConvention

Source§

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

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

impl PartialEq for CallingConvention

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u64> for CallingConvention

Source§

type Error = TryFromPrimitiveError<CallingConvention>

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

fn try_from(number: u64) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for CallingConvention

Source§

const NAME: &'static str = "CallingConvention"

Source§

type Primitive = u64

Source§

fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>

Source§

impl StructuralPartialEq for CallingConvention

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> 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, 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.