pub enum CallingConvention {
SystemV,
Win64,
Custom,
}Expand description
Calling convention
Variants§
SystemV
System V AMD64 ABI (Linux, macOS)
Win64
Microsoft x64 calling convention (Windows)
Custom
Custom calling convention
Implementations§
Source§impl CallingConvention
impl CallingConvention
Sourcepub fn param_registers(&self) -> Vec<&'static str>
pub fn param_registers(&self) -> Vec<&'static str>
Get parameter registers
Sourcepub fn return_register(&self) -> &'static str
pub fn return_register(&self) -> &'static str
Get return register
Sourcepub fn callee_saved_registers(&self) -> Vec<&'static str>
pub fn callee_saved_registers(&self) -> Vec<&'static str>
Get callee-saved registers
Sourcepub fn requires_stack_alignment(&self) -> bool
pub fn requires_stack_alignment(&self) -> bool
Check if stack alignment is required
Sourcepub fn stack_alignment(&self) -> usize
pub fn stack_alignment(&self) -> usize
Get stack alignment
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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more