pub enum CallDispatch {
Direct = 0,
Branch = 1,
Indirect = 2,
Vtable = 3,
}Expand description
Variants§
Direct = 0
Statically resolved call.
Boundary: the call site encodes the callee directly.
Branch = 1
Selection among a finite set via conditional branch.
Boundary: dispatch occurs by matching a discriminant.
Indirect = 2
Call via function pointer.
Boundary: callee address is loaded from memory at runtime.
Vtable = 3
Dynamic dispatch via trait object.
Boundary: method pointer resolved through a vtable.
Trait Implementations§
Source§impl Clone for CallDispatch
impl Clone for CallDispatch
impl Copy for CallDispatch
Source§impl Debug for CallDispatch
impl Debug for CallDispatch
impl Eq for CallDispatch
Source§impl Hash for CallDispatch
impl Hash for CallDispatch
Source§impl Ord for CallDispatch
impl Ord for CallDispatch
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for CallDispatch
impl PartialEq for CallDispatch
Source§impl PartialOrd for CallDispatch
impl PartialOrd for CallDispatch
impl StructuralPartialEq for CallDispatch
Auto Trait Implementations§
impl Freeze for CallDispatch
impl RefUnwindSafe for CallDispatch
impl Send for CallDispatch
impl Sync for CallDispatch
impl Unpin for CallDispatch
impl UnsafeUnpin for CallDispatch
impl UnwindSafe for CallDispatch
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> ByteSized for T
impl<T> ByteSized for T
Source§const BYTE_ALIGN: usize = _
const BYTE_ALIGN: usize = _
The alignment of this type in bytes.
Source§fn byte_align(&self) -> usize
fn byte_align(&self) -> usize
Returns the alignment of this type in bytes.