Enum AbiValue
Source pub enum AbiValue {
C {
unwind: bool,
},
System {
unwind: bool,
},
Rust,
Aapcs {
unwind: bool,
},
Cdecl {
unwind: bool,
},
Stdcall {
unwind: bool,
},
Fastcall {
unwind: bool,
},
Thiscall {
unwind: bool,
},
Vectorcall {
unwind: bool,
},
SysV64 {
unwind: bool,
},
Win64 {
unwind: bool,
},
EfiApi,
}
Expand description
The abi or calling convention of a function pointer.
This is the same as extern fn foo(); whatever the default your C compiler supports.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
Usually the same as extern "C", except on Win32, in which case it’s
"stdcall", or what you should use to link to the Windows API itself.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
The default abi when you write a normal fn foo() in any Rust code.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
The default for x86_32 C code.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
The default for the Win32 API on x86_32.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
The default for C code on non-Windows x86_64.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
The default for C code on x86_64 Windows.
Fields
Whether unwinding across this abi boundary is allowed (*-unwind).
UEFI ABI, usually an alias of C, but sometimes an arch-specific alias.
Returns whether unwinding after a panic is allowed inside the called function.
Canonicalize this abi for the current target.
Maps aliases (e.g. system, cdecl) to the concrete abi actually used on
the current OS/architecture, following Rust compiler rules.
Returns None if this abi is not supported on the current target.
Returns the string representation of this abi.
The same as the FromStr implementation, but (only!) for use in const contexts.
Performs copy-assignment from
source.
Read more
Formats the value using the given formatter.
Read more
Formats the value using the given formatter.
Read more
The associated error which can be returned from parsing.
Parses a string
s to return a value of this type.
Read more
Compares and returns the maximum of two values.
Read more
Compares and returns the minimum of two values.
Read more
Restrict a value to a certain interval.
Read more
Tests for self and other values to be equal, and is used by ==.
Tests for !=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.
This method returns an ordering between
self and
other values if one exists.
Read more
Tests less than (for
self and
other) and is used by the
< operator.
Read more
Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more
Tests greater than (for
self and
other) and is used by the
>
operator.
Read more
Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more
The DropFlavor that
wraps
T into
Self
Returns the argument unchanged.
A constant of the type witness
Proof that Self is the same type as Self::Type,
provides methods for casting between Self and Self::Type.
The same type as Self,
used to emulate type equality bounds (T == U)
with associated type equality constraints
(T: Identity<Type = U>).
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.