#[repr(u64)]pub enum RuntimePreemption {
DsoPreemptable = 0,
DsoLocal = 1,
}
Expand description
The runtime preemption specifier.
See: https://llvm.org/docs/LangRef.html#runtime-preemption-model
Variants§
DsoPreemptable = 0
The function or variable may be replaced by a symbol from outside the linkage unit at runtime.
DsoLocal = 1
The compiler may assume that the function or variable will resolve to a symbol within the same linkage unit.
Trait Implementations§
Source§impl Debug for RuntimePreemption
impl Debug for RuntimePreemption
Source§impl From<RuntimePreemption> for u64
impl From<RuntimePreemption> for u64
Source§fn from(enum_value: RuntimePreemption) -> Self
fn from(enum_value: RuntimePreemption) -> Self
Converts to this type from the input type.
Source§impl From<u64> for RuntimePreemption
impl From<u64> for RuntimePreemption
Source§fn from(value: u64) -> RuntimePreemption
fn from(value: u64) -> RuntimePreemption
Converts to this type from the input type.
Source§impl PartialEq for RuntimePreemption
impl PartialEq for RuntimePreemption
impl StructuralPartialEq for RuntimePreemption
Auto Trait Implementations§
impl Freeze for RuntimePreemption
impl RefUnwindSafe for RuntimePreemption
impl Send for RuntimePreemption
impl Sync for RuntimePreemption
impl Unpin for RuntimePreemption
impl UnwindSafe for RuntimePreemption
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