Enum RuntimeOption
#[non_exhaustive]pub enum RuntimeOption {
InterpretOnly,
CompileOnly,
TryCompile,
}
Expand description
Option for selecting a HashX runtime
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InterpretOnly
Choose the interpreted runtime, without trying the compiler at all.
CompileOnly
Choose the compiled runtime only, and fail if it experiences any errors.
TryCompile
Always try the compiler first but fall back to the interpreter on error. (This is the default)
Trait Implementations§
§impl Clone for RuntimeOption
impl Clone for RuntimeOption
§fn clone(&self) -> RuntimeOption
fn clone(&self) -> RuntimeOption
Returns a copy 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 more§impl Debug for RuntimeOption
impl Debug for RuntimeOption
§impl Default for RuntimeOption
impl Default for RuntimeOption
§fn default() -> RuntimeOption
fn default() -> RuntimeOption
Returns the “default value” for a type. Read more
§impl PartialEq for RuntimeOption
impl PartialEq for RuntimeOption
impl Copy for RuntimeOption
impl Eq for RuntimeOption
impl StructuralPartialEq for RuntimeOption
Auto Trait Implementations§
impl Freeze for RuntimeOption
impl RefUnwindSafe for RuntimeOption
impl Send for RuntimeOption
impl Sync for RuntimeOption
impl Unpin for RuntimeOption
impl UnwindSafe for RuntimeOption
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