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
impl Copy for CompileMode
Source§impl Debug for CompileMode
impl Debug for CompileMode
impl Eq for CompileMode
Source§impl PartialEq for CompileMode
impl PartialEq 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.