pub enum CallConvention {
ClosureCall,
DirectCall,
TailCall,
IndirectCall,
BuiltinCall,
}Expand description
Call convention for a function.
Variants§
ClosureCall
Standard closure call (through the closure mechanism).
DirectCall
Direct call (function is known at compile time).
TailCall
Tail call (reuse the current stack frame).
IndirectCall
Indirect call (through a function pointer).
BuiltinCall
Built-in operation (handled specially by the runtime).
Implementations§
Trait Implementations§
Source§impl Clone for CallConvention
impl Clone for CallConvention
Source§fn clone(&self) -> CallConvention
fn clone(&self) -> CallConvention
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 CallConvention
impl Debug for CallConvention
Source§impl Display for CallConvention
impl Display for CallConvention
Source§impl PartialEq for CallConvention
impl PartialEq for CallConvention
impl Copy for CallConvention
impl Eq for CallConvention
impl StructuralPartialEq for CallConvention
Auto Trait Implementations§
impl Freeze for CallConvention
impl RefUnwindSafe for CallConvention
impl Send for CallConvention
impl Sync for CallConvention
impl Unpin for CallConvention
impl UnsafeUnpin for CallConvention
impl UnwindSafe for CallConvention
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