pub enum CompileMode {
Script,
Eval,
}Expand description
Selects which export shape the compiler emits.
Script keeps the entity-script surface (should_apply + process
exports, env.* imports) the script executor consumes. Eval emits a
nomi-eval export that runs the program and returns the final value
via the function’s (ref null any) return slot; the host decodes it
with scripting::runtime::decode_eval_result.
Variants§
Trait Implementations§
Source§impl Clone for CompileMode
impl Clone for CompileMode
Source§fn clone(&self) -> CompileMode
fn clone(&self) -> CompileMode
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 CompileMode
impl Debug for CompileMode
Source§impl PartialEq for CompileMode
impl PartialEq for CompileMode
impl Copy for CompileMode
impl Eq for CompileMode
impl StructuralPartialEq for CompileMode
Auto Trait Implementations§
impl Freeze for CompileMode
impl RefUnwindSafe for CompileMode
impl Send for CompileMode
impl Sync for CompileMode
impl Unpin for CompileMode
impl UnsafeUnpin for CompileMode
impl UnwindSafe for CompileMode
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