pub enum BundleCode {
Bytecode(Vec<u8>),
Source(String),
}Expand description
The code of a bundle.
Variants§
Bytecode(Vec<u8>)
QuickJS bytecode from nsh_js::compile_bytecode.
Source(String)
JS source; slower to start than bytecode.
Trait Implementations§
Source§impl Clone for BundleCode
impl Clone for BundleCode
Auto Trait Implementations§
impl Forget for BundleCode
impl Freeze for BundleCode
impl Move for BundleCode
impl RefUnwindSafe for BundleCode
impl Send for BundleCode
impl Sync for BundleCode
impl Unpin for BundleCode
impl UnsafeUnpin for BundleCode
impl UnwindSafe for BundleCode
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