pub enum CallBindTime {
Compile = 0,
Build = 1,
Run = 2,
}Expand description
Variants§
Compile = 0
Callee identity fixed by the compiler.
Boundary: the call graph edge is known statically and may be inlined.
Example: direct function call or monomorphized generic.
Build = 1
Callee selected by build-time fixed data.
Boundary: selection occurs via branch on a closed set (e.g. enum or bytecode), but cannot change without rebuilding.
Run = 2
Callee selected by runtime-provided data.
Boundary: changing runtime data alone can alter the invoked function (e.g. function pointers or trait objects).
Trait Implementations§
Source§impl Clone for CallBindTime
impl Clone for CallBindTime
impl Copy for CallBindTime
Source§impl Debug for CallBindTime
impl Debug for CallBindTime
impl Eq for CallBindTime
Source§impl Hash for CallBindTime
impl Hash for CallBindTime
Source§impl Ord for CallBindTime
impl Ord for CallBindTime
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 CallBindTime
impl PartialEq for CallBindTime
Source§impl PartialOrd for CallBindTime
impl PartialOrd for CallBindTime
impl StructuralPartialEq for CallBindTime
Auto Trait Implementations§
impl Freeze for CallBindTime
impl RefUnwindSafe for CallBindTime
impl Send for CallBindTime
impl Sync for CallBindTime
impl Unpin for CallBindTime
impl UnsafeUnpin for CallBindTime
impl UnwindSafe for CallBindTime
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.