Enum clang::CallingConvention
source · [−]#[repr(C)]
pub enum CallingConvention {
Show 16 variants
Unexposed,
Cdecl,
Fastcall,
Pascal,
Stdcall,
Thiscall,
Vectorcall,
Swift,
PreserveMost,
PreserveAll,
Aapcs,
AapcsVfp,
IntelOcl,
RegCall,
SysV64,
Win64,
}
Expand description
Indicates the calling convention specified for a function type.
Variants
Unexposed
The function type uses a calling convention that is not exposed via this interface.
Cdecl
The function type uses the x86 cdecl
calling convention.
Fastcall
The function type uses the x86 fastcall
calling convention.
Pascal
The function type uses the x86 pascal
calling convention.
Stdcall
The function type uses the x86 stdcall
calling convention.
Thiscall
The function type uses the x86 thiscall
calling convention.
Vectorcall
The function type uses the x86 vectorcall
calling convention.
Only produced by libclang
3.6 and later.
Swift
The function type uses the calling convention for the Swift programming language.
Only produced by libclang
3.9 and later.
PreserveMost
The function type uses a calling convention that perserves most registers.
Only produced by libclang
3.9 and later.
PreserveAll
The function type uses a calling convention that preverses nearly all registers.
Only produced by libclang
3.9 and later.
Aapcs
The function type uses the ARM AACPS calling convention.
AapcsVfp
The function type uses the ARM AACPS-VFP calling convention.
IntelOcl
The function type uses the calling convention for Intel OpenCL built-ins.
RegCall
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
The function type uses the x64 C calling convention as specified in the System V ABI.
Win64
The function type uses the x64 C calling convention as implemented on Windows.
Trait Implementations
sourceimpl Clone for CallingConvention
impl Clone for CallingConvention
sourcefn clone(&self) -> CallingConvention
fn clone(&self) -> CallingConvention
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for CallingConvention
impl Debug for CallingConvention
sourceimpl Hash for CallingConvention
impl Hash for CallingConvention
impl Copy for CallingConvention
impl Eq for CallingConvention
impl StructuralEq for CallingConvention
impl StructuralPartialEq for CallingConvention
Auto Trait Implementations
impl RefUnwindSafe for CallingConvention
impl Send for CallingConvention
impl Sync for CallingConvention
impl Unpin for CallingConvention
impl UnwindSafe for CallingConvention
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more