pub enum CallingConvention {
C,
Rust,
System,
Fastcall,
}Expand description
Calling convention for FFI functions.
Variants§
C
Standard C calling convention.
Rust
Rust calling convention (default for Rust functions).
System
System calling convention (stdcall on Windows, C on other platforms).
Fastcall
Fastcall (register-based for first N arguments).
Trait Implementations§
Source§impl Clone for CallingConvention
impl Clone for CallingConvention
Source§fn clone(&self) -> CallingConvention
fn clone(&self) -> CallingConvention
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CallingConvention
impl Debug for CallingConvention
Source§impl Display for CallingConvention
impl Display for CallingConvention
Source§impl Hash for CallingConvention
impl Hash for CallingConvention
Source§impl PartialEq for CallingConvention
impl PartialEq for CallingConvention
impl Copy for CallingConvention
impl Eq for CallingConvention
impl StructuralPartialEq for CallingConvention
Auto Trait Implementations§
impl Freeze for CallingConvention
impl RefUnwindSafe for CallingConvention
impl Send for CallingConvention
impl Sync for CallingConvention
impl Unpin for CallingConvention
impl UnsafeUnpin for CallingConvention
impl UnwindSafe for CallingConvention
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more