Enum CallingConvention

Source
#[repr(C)]
pub enum CallingConvention {
Show 16 variants Unexposed = 200, Cdecl = 1, Fastcall = 3, Pascal = 5, Stdcall = 2, Thiscall = 4, Vectorcall = 12, Swift = 13, PreserveMost = 14, PreserveAll = 15, Aapcs = 6, AapcsVfp = 7, IntelOcl = 9, RegCall = 8, SysV64 = 11, Win64 = 10,
}
Expand description

Indicates the calling convention specified for a function type.

Variants§

§

Unexposed = 200

The function type uses a calling convention that is not exposed via this interface.

§

Cdecl = 1

The function type uses the x86 cdecl calling convention.

§

Fastcall = 3

The function type uses the x86 fastcall calling convention.

§

Pascal = 5

The function type uses the x86 pascal calling convention.

§

Stdcall = 2

The function type uses the x86 stdcall calling convention.

§

Thiscall = 4

The function type uses the x86 thiscall calling convention.

§

Vectorcall = 12

The function type uses the x86 vectorcall calling convention.

Only produced by libclang 3.6 and later.

§

Swift = 13

The function type uses the calling convention for the Swift programming language.

Only produced by libclang 3.9 and later.

§

PreserveMost = 14

The function type uses a calling convention that perserves most registers.

Only produced by libclang 3.9 and later.

§

PreserveAll = 15

The function type uses a calling convention that preverses nearly all registers.

Only produced by libclang 3.9 and later.

§

Aapcs = 6

The function type uses the ARM AACPS calling convention.

§

AapcsVfp = 7

The function type uses the ARM AACPS-VFP calling convention.

§

IntelOcl = 9

The function type uses the calling convention for Intel OpenCL built-ins.

§

RegCall = 8

The function type uses a calling convention that passes as many values in registers as possible.

Only produced by libclang 4.0 and later.

§

SysV64 = 11

The function type uses the x64 C calling convention as specified in the System V ABI.

§

Win64 = 10

The function type uses the x64 C calling convention as implemented on Windows.

Trait Implementations§

Source§

impl Clone for CallingConvention

Source§

fn clone(&self) -> CallingConvention

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for CallingConvention

Source§

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

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

impl Hash for CallingConvention

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 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 Copy for CallingConvention

Source§

impl Eq for CallingConvention

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